/* ============================================
   Altarmak Bulut - Dashboard Styles
   Endüstriyel Modern Dark Theme
   ============================================ */

:root {
    --primary: #D4500A;
    --primary-dark: #B03D06;
    --primary-light: #F06A1E;
    --primary-glow: rgba(212,80,10,0.15);
    --secondary: #1A2332;
    --accent: #F5A623;
    --bg-body: #0F1219;
    --bg-sidebar: #111827;
    --bg-card: #1A2035;
    --bg-card-hover: #1F2847;
    --bg-input: #151C2C;
    --bg-topbar: #141A27;
    --border: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.1);
    --text-primary: #F0F4F8;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --purple: #8B5CF6;
    --pink: #EC4899;
    --cyan: #06B6D4;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --sidebar-width: 270px;
    --topbar-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.35);
    --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); line-height: 1.3; }

/* ---- SIDEBAR ---- */
.sidebar {
    position: fixed; top: 0; left: 0;
    width: var(--sidebar-width); height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
    overflow: hidden;
}

.sidebar-header {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}

.sidebar-logo {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
}

.sidebar-logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(212,80,10,0.35);
}

.logo-brand {
    font-family: var(--font-heading); font-weight: 900;
    font-size: 1.15rem; color: var(--text-primary);
    letter-spacing: 1.5px; display: block; line-height: 1;
}

.logo-sub {
    font-family: var(--font-heading); font-weight: 500;
    font-size: 0.62rem; color: var(--primary);
    letter-spacing: 4px; text-transform: uppercase;
}

.sidebar-close { display: none; background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }

.nav-section { margin-bottom: 24px; }

.nav-section-title {
    display: block; padding: 0 12px 8px;
    font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--text-muted);
}

.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: var(--transition); position: relative;
    margin-bottom: 2px;
}

.nav-item i { width: 20px; text-align: center; font-size: 0.9rem; }
.nav-item:hover { background: var(--primary-glow); color: var(--primary-light); }
.nav-item.active { background: var(--primary-glow); color: var(--primary-light); font-weight: 600; }
.nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 24px; background: var(--primary); border-radius: 0 3px 3px 0;
}

.nav-badge {
    margin-left: auto; padding: 2px 8px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 700;
    background: var(--primary); color: #fff; min-width: 22px; text-align: center;
}
.nav-badge.warn { background: var(--warning); }

.sidebar-footer {
    padding: 16px; border-top: 1px solid var(--border);
}

.sidebar-user {
    display: flex; align-items: center; gap: 12px;
}

.sidebar-user-avatar {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1rem;
}

.sidebar-user-info strong { display: block; font-size: 0.85rem; color: var(--text-primary); }
.sidebar-user-info span { font-size: 0.72rem; color: var(--text-muted); }

/* ---- MAIN WRAPPER ---- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}

/* ---- TOPBAR ---- */
.topbar {
    position: sticky; top: 0; z-index: 900;
    height: var(--topbar-height);
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    backdrop-filter: blur(12px);
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; color: var(--text-secondary); font-size: 1.2rem; cursor: pointer; }
.page-title-bar { font-size: 1.1rem; font-weight: 700; }

.topbar-right { display: flex; align-items: center; gap: 16px; }

.topbar-search {
    position: relative;
}
.topbar-search i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 0.85rem;
}
.topbar-search input {
    width: 220px; padding: 8px 14px 8px 38px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 50px; color: var(--text-primary); font-family: var(--font-body);
    font-size: 0.85rem; transition: var(--transition);
}
.topbar-search input:focus { outline: none; border-color: var(--primary); width: 280px; }
.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-icon-btn {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); cursor: pointer; position: relative;
    transition: var(--transition);
}
.topbar-icon-btn:hover { border-color: var(--primary); color: var(--primary-light); }

.topbar-badge {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--danger); color: #fff; border-radius: 50%;
    font-size: 0.65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* Notif Dropdown */
.notif-dropdown, .profile-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: var(--transition); z-index: 999;
}
.notif-dropdown.show, .profile-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }

.notif-dropdown { width: 340px; }
.notif-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-header strong { font-size: 0.9rem; }
.notif-mark-read { font-size: 0.75rem; color: var(--primary); }
.notif-list { max-height: 300px; overflow-y: auto; }
.notif-empty { padding: 30px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.notif-empty i { display: block; font-size: 1.5rem; margin-bottom: 8px; color: var(--success); }
.notif-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: var(--transition); }
.notif-item:hover { background: var(--bg-card-hover); }
.notif-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--primary-glow); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 0.85rem; flex-shrink: 0; }
.notif-content strong { display: block; font-size: 0.82rem; color: var(--text-primary); }
.notif-content p { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.notif-content small { font-size: 0.7rem; color: var(--text-muted); }

/* Profile Dropdown */
.topbar-profile { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; padding: 6px 10px; border-radius: var(--radius-sm); transition: var(--transition); }
.topbar-profile:hover { background: var(--bg-input); }
.topbar-avatar { width: 34px; height: 34px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.9rem; }
.topbar-username { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.topbar-profile > i { font-size: 0.6rem; color: var(--text-muted); }
.profile-dropdown { width: 200px; padding: 8px; }
.profile-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.85rem; transition: var(--transition); }
.profile-dropdown a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.profile-dropdown a i { width: 18px; text-align: center; }
.text-danger { color: var(--danger) !important; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Reminder Banner */
.reminder-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 24px; background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(245,158,11,0.05));
    border-bottom: 1px solid rgba(245,158,11,0.15);
}
.reminder-banner-icon { color: var(--warning); font-size: 1.2rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.reminder-banner-text strong { display: block; font-size: 0.85rem; color: var(--warning); }
.reminder-banner-text span { font-size: 0.78rem; color: var(--text-muted); }

/* ---- PAGE CONTENT ---- */
.page-content { padding: 24px; min-height: calc(100vh - var(--topbar-height) - 60px); }

/* ---- CARDS ---- */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition);
}
.card:hover { border-color: var(--border-light); }
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.card-header h3 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-header h3 i { color: var(--primary); font-size: 0.9rem; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* ---- STAT CARDS ---- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }

.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px;
    display: flex; align-items: center; gap: 16px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--stat-color, var(--primary));
    opacity: 0.06; transform: translate(20px, -20px);
}
.stat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }

.stat-icon {
    width: 52px; height: 52px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
}

.stat-info h4 { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-info p { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; font-family: var(--font-body);
    font-weight: 600; font-size: 0.85rem; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer; transition: var(--transition);
    text-decoration: none; white-space: nowrap;
}

.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(212,80,10,0.35); color: #fff; }
.btn-secondary { background: var(--bg-input); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-light); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: 0.9; color: #fff; }
.btn-warning { background: var(--warning); color: #111; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--secondary); }
.btn-sm { padding: 6px 14px; font-size: 0.78rem; border-radius: 6px; }
.btn-lg { padding: 14px 30px; font-size: 0.95rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: var(--radius-sm); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1faa53; color: #fff; }
.btn-call { background: var(--info); color: #fff; }
.btn-call:hover { background: #2563eb; color: #fff; }

.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-weight: 600; font-size: 0.82rem;
    color: var(--text-secondary); margin-bottom: 6px;
}
.form-group label .req { color: var(--danger); }

.form-control {
    width: 100%; padding: 11px 16px; font-family: var(--font-body);
    font-size: 0.88rem; background: var(--bg-input);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-control::placeholder { color: var(--text-muted); }

textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.form-check { display: flex; align-items: center; gap: 8px; }
.form-check input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.form-check label { margin-bottom: 0; cursor: pointer; }

/* ---- TABLES ---- */
.table-wrapper { overflow-x: auto; }

.data-table {
    width: 100%; border-collapse: collapse;
}
.data-table th {
    padding: 12px 16px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); text-align: left;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.data-table td {
    padding: 14px 16px; font-size: 0.88rem;
    border-bottom: 1px solid var(--border); vertical-align: middle;
}
.data-table tr:hover td { background: var(--bg-card-hover); }

.data-table .customer-name { display: flex; align-items: center; gap: 12px; }
.data-table .customer-avatar {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: #fff; flex-shrink: 0;
}
.data-table .customer-info strong { display: block; font-size: 0.88rem; color: var(--text-primary); }
.data-table .customer-info span { font-size: 0.75rem; color: var(--text-muted); }

/* ---- BADGES ---- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 50px;
    font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.badge-success { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.12); color: var(--danger); }
.badge-info { background: rgba(59,130,246,0.12); color: var(--info); }
.badge-purple { background: rgba(139,92,246,0.12); color: var(--purple); }
.badge-muted { background: rgba(100,116,139,0.12); color: var(--text-muted); }

/* ---- DOCUMENT CARDS ---- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

.doc-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    transition: var(--transition); cursor: pointer;
}
.doc-card:hover { border-color: var(--border-light); transform: translateY(-2px); box-shadow: var(--shadow); }

.doc-card-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 14px;
}

.doc-card h4 { font-size: 0.9rem; margin-bottom: 6px; word-break: break-word; }
.doc-card p { font-size: 0.78rem; color: var(--text-muted); }
.doc-card-meta { display: flex; gap: 12px; margin-top: 12px; font-size: 0.72rem; color: var(--text-muted); }
.doc-card-meta i { margin-right: 4px; }

/* ---- CATEGORY CARDS ---- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

.cat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; text-align: center;
    transition: var(--transition); text-decoration: none;
}
.cat-card:hover { border-color: var(--border-light); transform: translateY(-2px); }

.cat-icon {
    width: 56px; height: 56px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 12px;
}
.cat-card h4 { font-size: 0.9rem; color: var(--text-primary); }
.cat-card .cat-count { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ---- CUSTOMER DETAIL ---- */
.customer-header-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
}
.customer-big-avatar {
    width: 72px; height: 72px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.customer-header-info h2 { font-size: 1.3rem; margin-bottom: 4px; }
.customer-header-info p { color: var(--text-muted); font-size: 0.88rem; }
.customer-header-actions { margin-left: auto; display: flex; gap: 8px; }

.customer-contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.contact-info-item {
    display: flex; align-items: center; gap: 12px; padding: 14px;
    background: var(--bg-input); border-radius: var(--radius-sm);
}
.contact-info-item i { color: var(--primary); font-size: 1rem; width: 20px; text-align: center; }
.contact-info-item div small { display: block; font-size: 0.72rem; color: var(--text-muted); }
.contact-info-item div span, .contact-info-item div a { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); }

/* ---- NOTES ---- */
.note-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
    position: relative; transition: var(--transition);
}
.note-card:hover { border-color: var(--border-light); }
.note-card.important { border-left: 3px solid var(--warning); }
.note-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.note-header h4 { font-size: 0.9rem; }
.note-header .note-actions { display: flex; gap: 4px; }
.note-content { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }
.note-meta { display: flex; gap: 14px; margin-top: 10px; font-size: 0.72rem; color: var(--text-muted); }

/* ---- REMINDER CARDS ---- */
.reminder-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 20px; margin-bottom: 10px;
    transition: var(--transition);
}
.reminder-card:hover { border-color: var(--border-light); }
.reminder-card.overdue { border-left: 3px solid var(--danger); }
.reminder-card.today { border-left: 3px solid var(--warning); }
.reminder-check { flex-shrink: 0; }
.reminder-check input { width: 20px; height: 20px; accent-color: var(--primary); cursor: pointer; }
.reminder-info { flex: 1; }
.reminder-info h4 { font-size: 0.9rem; margin-bottom: 2px; }
.reminder-info p { font-size: 0.78rem; color: var(--text-muted); }
.reminder-date { text-align: right; flex-shrink: 0; }
.reminder-date strong { display: block; font-size: 0.82rem; }
.reminder-date span { font-size: 0.72rem; color: var(--text-muted); }

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center; padding: 60px 20px;
}
.empty-state i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; }

/* ---- ALERTS ---- */
.alert {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-radius: var(--radius-sm);
    margin-bottom: 20px; font-size: 0.88rem;
}
.alert-success { background: rgba(16,185,129,0.1); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.alert-danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.alert-warning { background: rgba(245,158,11,0.1); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }
.alert-info { background: rgba(59,130,246,0.1); color: var(--info); border: 1px solid rgba(59,130,246,0.2); }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination a, .pagination span {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
    border: 1px solid var(--border); color: var(--text-secondary); transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- UPLOAD AREA ---- */
.upload-area {
    border: 2px dashed var(--border-light); border-radius: var(--radius-lg);
    padding: 50px 30px; text-align: center; cursor: pointer;
    transition: var(--transition); position: relative;
}
.upload-area:hover, .upload-area.dragover { border-color: var(--primary); background: var(--primary-glow); }
.upload-area i { font-size: 2.5rem; color: var(--primary); margin-bottom: 14px; }
.upload-area h3 { font-size: 1rem; margin-bottom: 6px; }
.upload-area p { font-size: 0.82rem; color: var(--text-muted); }
.upload-area input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---- GRID HELPERS ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }

/* ---- MISC ---- */
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mt-20 { margin-top: 20px; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 10px; }
.gap-8 { gap: 8px; }

.section-divider { height: 1px; background: var(--border); margin: 24px 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; padding: 3px 10px; background: var(--primary-glow); color: var(--primary-light); border-radius: 50px; font-size: 0.72rem; font-weight: 600; }

/* ---- FOOTER ---- */
.main-footer { padding: 16px 24px; border-top: 1px solid var(--border); text-align: center; }
.main-footer p { font-size: 0.78rem; color: var(--text-muted); }
.main-footer strong { color: var(--primary-light); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 12px; align-items: center; }
.footer-links a { color: var(--text-muted); font-size: 0.78rem; }
.footer-links span { color: var(--border); }

/* ---- WHATSAPP FLOAT ---- */
.wa-float {
    position: fixed; bottom: 24px; right: 24px;
    width: 54px; height: 54px; border-radius: 50%;
    background: #25D366; color: #fff !important; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 998; animation: wa-pulse 2s infinite;
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---- TOAST ---- */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease;
    min-width: 280px;
}
.toast i { font-size: 1.1rem; }
.toast-success i { color: var(--success); }
.toast-danger i { color: var(--danger); }
.toast-warning i { color: var(--warning); }
.toast span { font-size: 0.85rem; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 10000; display: none; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.show { display: flex; }
.modal {
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); width: 100%; max-width: 560px;
    box-shadow: var(--shadow-lg); animation: modalIn 0.3s ease;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 1.05rem; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); }
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- LOGIN PAGE ---- */
.login-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: var(--bg-body); padding: 20px;
    position: relative; overflow: hidden;
}
.login-page::before {
    content: ''; position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,80,10,0.08), transparent 70%);
    top: -200px; right: -200px;
}
.login-page::after {
    content: ''; position: absolute; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.05), transparent 70%);
    bottom: -100px; left: -100px;
}

.login-card {
    width: 100%; max-width: 440px;
    background: var(--bg-card); border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow-lg); position: relative; z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .sidebar-logo-icon { margin: 0 auto 12px; width: 56px; height: 56px; font-size: 1.5rem; }
.login-title { font-size: 1.5rem; margin-bottom: 8px; }
.login-subtitle { color: var(--text-muted); font-size: 0.88rem; }
.login-divider { text-align: center; margin: 20px 0; color: var(--text-muted); font-size: 0.82rem; }

/* ---- ACTIVITY LOG ---- */
.activity-list {}
.activity-item {
    display: flex; gap: 14px; padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.activity-icon {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary-glow); display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 0.8rem; flex-shrink: 0;
}
.activity-text { font-size: 0.85rem; color: var(--text-secondary); }
.activity-text strong { color: var(--text-primary); }
.activity-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ---- SEARCH FILTER BAR ---- */
.filter-bar {
    display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: center;
}
.filter-bar .form-control { width: auto; min-width: 180px; padding: 8px 14px; font-size: 0.82rem; }
.filter-bar .btn { padding: 8px 18px; }
