* { box-sizing: border-box; }

/* Honeypot anti-bot: tersembunyi dari pengguna manusia (posisi di luar layar,
   bukan display:none, supaya bot sederhana yang mengecek visibility tetap mengisinya) */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    overflow: hidden;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f4f6f9;
    color: #222;
}

/* ===== Navbar ===== */
.navbar {
    background: #1f2937;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 60px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.navbar-brand i {
    color: #4dabf7;
    font-size: 24px;
}

.navbar-logo {
    height: 36px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-menu a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: #374151;
    color: #fff;
}

.navbar-user {
    color: #9ca3af;
    font-size: 14px;
}

.logout-btn {
    background: #dc2626 !important;
    color: #fff !important;
}

.logout-btn:hover {
    background: #b91c1c !important;
}

/* ===== Container ===== */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.page-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1f2937;
}

.page-title i { color: #2d7dfa; margin-right: 8px; }

/* ===== Forms ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #2d7dfa;
    box-shadow: 0 0 0 3px rgba(45,125,250,0.15);
}

.paste-textarea {
    font-family: 'Consolas', 'Courier New', monospace;
    resize: vertical;
}

.btn-primary {
    background: #2d7dfa;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover { background: #1b63d6; }

.btn-block { width: 100%; justify-content: center; }

.btn-submit {
    margin-top: 10px;
    padding: 14px 28px;
    font-size: 16px;
}

/* ===== Tabs ===== */
.tabs-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 20px;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover { background: #e9ecef; }

.tab-btn.active {
    color: #2d7dfa;
    border-bottom-color: #2d7dfa;
    background: #fff;
}

.add-tab-btn {
    margin-left: auto;
    background: #2d7dfa;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 8px;
}

.add-tab-btn:hover { background: #1b63d6; }

.tabs-content { padding: 18px; }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.btn-remove-tab {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-remove-tab:hover { background: #fecaca; }

/* ===== Alerts ===== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ===== Auth pages ===== */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1f2937, #2d7dfa);
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 380px;
    padding: 36px 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #2d7dfa;
    margin-bottom: 6px;
}

.auth-logo img {
    height: 48px;
    width: auto;
}

.auth-card h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #1f2937;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    margin-top: 16px;
    color: #555;
}

.auth-footer a { color: #2d7dfa; text-decoration: none; font-weight: 600; }

/* ===== Cleanup form ===== */
.cleanup-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #fde68a;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    font-size: 14px;
}

.cleanup-form i { color: #d97706; }

.cleanup-form input[type="number"] {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.btn-warning {
    background: #d97706;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: auto;
}

.btn-warning:hover { background: #b45309; }

.manual-note {
    font-size: 13px;
    color: #16a34a;
    margin: -10px 0 20px;
}

.manual-note i { margin-right: 4px; }

/* ===== Paste list (member.php) ===== */
.empty-state {
    text-align: center;
    color: #888;
    padding: 40px 0;
}

.paste-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
}

.paste-card-header {
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.paste-date {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.paste-items { padding: 10px 18px; }

.paste-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f3f5;
    flex-wrap: wrap;
    gap: 8px;
}

.paste-item:last-child { border-bottom: none; }

.paste-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.paste-item-title i { color: #2d7dfa; margin-right: 6px; }

.paste-item-actions {
    display: flex;
    gap: 8px;
}

.btn-copy, .btn-raw, .btn-delete {
    font-size: 13px;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-copy { background: #e0f2fe; color: #075985; }
.btn-copy:hover { background: #bae6fd; }

.btn-raw { background: #ede9fe; color: #5b21b6; }
.btn-raw:hover { background: #ddd6fe; }

.btn-delete { background: #fee2e2; color: #b91c1c; }
.btn-delete:hover { background: #fecaca; }

/* ===== Footer ===== */
.site-footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
}

@media (max-width: 600px) {
    .navbar-menu { gap: 10px; }
    .navbar-user { display: none; }
    .paste-item { flex-direction: column; align-items: flex-start; }
}
