@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0a0c;
    --bg-secondary: #111113;
    --bg-sidebar: #050506;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-red: #dc2626;
    --accent-red-hover: #ef4444;
    --accent-red-glow: rgba(220, 38, 38, 0.25);
    --border-color: #1f1f23;
    --sidebar-width: 280px;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Status Colors */
    --status-red-bg: rgba(220, 38, 38, 0.22);
    --status-red-pulse-bg: rgba(220, 38, 38, 0.38);
    --status-red-text: #fca5a5;
    --status-red-border: rgba(220, 38, 38, 0.3);
    
    --status-green-bg: rgba(16, 185, 129, 0.15);
    --status-green-text: #a7f3d0;
    --status-green-border: rgba(16, 185, 129, 0.3);
    
    --status-orange-bg: rgba(245, 158, 11, 0.15);
    --status-orange-text: #fde68a;
    --status-orange-border: rgba(245, 158, 11, 0.3);
    
    --accent-green: #10b981;
    --accent-green-hover: #34d399;
    
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-login: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --scrollbar-thumb: #27272a;
    --btn-secondary-bg: #27272a;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-sidebar: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-red: #e11d48;
    --accent-red-hover: #be123c;
    --accent-red-glow: rgba(225, 29, 72, 0.12);
    --border-color: #e2e8f0;
    
    --status-red-bg: rgba(225, 29, 72, 0.12);
    --status-red-pulse-bg: rgba(225, 29, 72, 0.26);
    --status-red-text: #b91c1c;
    --status-red-border: rgba(225, 29, 72, 0.2);
    
    --status-green-bg: rgba(16, 185, 129, 0.08);
    --status-green-text: #047857;
    --status-green-border: rgba(16, 185, 129, 0.25);
    
    --status-orange-bg: rgba(217, 119, 6, 0.08);
    --status-orange-text: #b45309;
    --status-orange-border: rgba(217, 119, 6, 0.25);
    
    --accent-green: #059669;
    --accent-green-hover: #047857;
    
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-login: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --scrollbar-thumb: #cbd5e1;
    --btn-secondary-bg: #cbd5e1;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Login Page Styles */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: radial-gradient(circle at top right, rgba(220, 38, 38, 0.08), transparent 45%),
                radial-gradient(circle at bottom left, rgba(220, 38, 38, 0.03), transparent 35%),
                var(--bg-primary);
    position: relative;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-login);
    transition: border-color 0.3s ease;
}

.login-card:hover {
    border-color: var(--accent-red-glow);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brand-title span {
    color: var(--accent-red);
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-glow);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-red);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.navbar .btn-primary,
.navbar-right .btn-primary {
    width: auto !important;
}

.btn-primary:hover {
    background-color: var(--accent-red-hover);
    box-shadow: 0 0 12px var(--accent-red-glow);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background-color: var(--status-red-bg);
    border: 1px solid var(--status-red-border);
    color: var(--status-red-text);
}

.alert-success {
    background-color: var(--status-green-bg);
    border: 1px solid var(--status-green-border);
    color: var(--status-green-text);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.badge-success {
    background-color: var(--status-green-bg);
    color: var(--status-green-text);
    border: 1px solid var(--status-green-border);
}
.badge-danger {
    background-color: var(--status-red-bg);
    color: var(--status-red-text);
    border: 1px solid var(--status-red-border);
}
.badge-warning {
    background-color: var(--status-orange-bg);
    color: var(--status-orange-text);
    border: 1px solid var(--status-orange-border);
}
.badge-secondary {
    background-color: rgba(128, 128, 128, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.badge-source {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background-color: var(--btn-secondary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 40px;
    height: 40px;
    outline: none;
}
.theme-toggle:hover {
    color: var(--text-primary);
    background-color: var(--border-color);
    transform: rotate(15deg) scale(1.05);
}
.theme-toggle svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}
.theme-toggle-login {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}
[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}
[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}
[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}
html:not([data-theme="light"]) .theme-toggle .sun-icon {
    display: none;
}
html:not([data-theme="light"]) .theme-toggle .moon-icon {
    display: block;
}

/* Admin Dashboard Layout */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}
.sidebar-logo {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-brand .brand-text {
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.sidebar-brand {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-brand span {
    color: var(--accent-red);
}

.sidebar-menu {
    list-style: none;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.menu-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 12px 4px 12px;
    letter-spacing: 1px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--accent-red); /* Menü itemleri varsayılan kırmızı */
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.25s ease;
}

.menu-link:hover {
    color: var(--accent-red-hover);
    background-color: rgba(220, 38, 38, 0.05); /* Çok hafif kırmızı hover arka planı */
    transform: translateX(4px);
}

.menu-link:hover svg {
    transform: scale(1.1);
}

.menu-link.active {
    color: var(--text-primary);
    background-color: var(--accent-red);
    box-shadow: 0 4px 12px var(--accent-red-glow);
}

.menu-link.active:hover {
    background-color: var(--accent-red-hover);
}

/* Submenu Styles */
.submenu-list {
    list-style: none;
    padding-left: 24px;
    margin-top: 4px;
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.submenu-link {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.submenu-link:hover {
    color: var(--accent-red-hover);
    background-color: rgba(220, 38, 38, 0.05);
    transform: translateX(4px);
}

.submenu-link.active {
    color: var(--text-primary);
    background-color: rgba(220, 38, 38, 0.15);
    font-weight: 600;
}

.menu-link.submenu-toggle {
    justify-content: space-between;
}

/* Collapsed Sidebar overrides for Submenu */
@media (min-width: 769px) {
    .layout-wrapper.sidebar-collapsed .submenu-list {
        display: none !important;
    }
    .layout-wrapper.sidebar-collapsed .chevron-icon {
        display: none !important;
    }
}

/* User Profile Section at Sidebar Bottom */
.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
[data-theme="light"] .sidebar-footer {
    background-color: rgba(0, 0, 0, 0.03);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.logout-btn {
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.logout-btn:hover {
    color: var(--accent-red);
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header navbar */
.navbar {
    height: 70px;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
}

/* Content Container */
.content-body {
    padding: 32px;
    flex-grow: 1;
    background-color: var(--bg-primary);
}

/* Toggle buttons for sidebar */
.btn-toggle-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

/* Sidebar Header toggle button */
.btn-toggle-menu-sidebar {
    background: none;
    border: none;
    color: var(--accent-red); /* Kırmızı buton rengi */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-left: 12px; /* Yazıyla arasını açmak için boşluk */
}
.btn-toggle-menu-sidebar:hover {
    color: var(--accent-red-hover);
    background-color: rgba(225, 29, 72, 0.08); /* Kırmızımsı hover rengi */
}
.btn-toggle-menu-sidebar svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}
.btn-toggle-menu:hover {
    background-color: var(--border-color);
}

.btn-close-sidebar {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: color 0.2s;
}
.btn-close-sidebar:hover {
    color: var(--accent-red);
}

/* Sidebar Backdrop Overlay */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 98;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive details */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    
    .btn-toggle-menu {
        display: inline-flex;
    }
    .btn-close-sidebar {
        display: inline-flex;
    }
    
    /* Layout details on mobile */
    .navbar {
        padding: 0 16px;
    }
    .content-body {
        padding: 16px;
    }
    
    /* Responsive Table formatting */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* Navigation Tabs */
.tabs-container {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    padding-bottom: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tabs-container::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: 8px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.tab-item:hover {
    color: var(--text-primary);
    border-color: rgba(220, 38, 38, 0.5);
    background-color: rgba(220, 38, 38, 0.04);
}

.tab-item.active {
    color: #ffffff !important;
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 14px var(--accent-red-glow);
    font-weight: 600;
}

/* Table Row Highlights */
@keyframes pulse-unread-row {
    0% {
        background-color: var(--status-red-bg);
    }
    50% {
        background-color: var(--status-red-pulse-bg);
    }
    100% {
        background-color: var(--status-red-bg);
    }
}

.unread-row {
    background-color: var(--status-red-bg);
    box-shadow: inset 3px 0 0 var(--accent-red);
    animation: pulse-unread-row 2.5s infinite ease-in-out;
}

.table-row:not(.unread-row):hover {
    background-color: rgba(128, 128, 128, 0.05) !important;
}

/* Action Buttons */
.btn-action {
    background-color: rgba(128, 128, 128, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-action:hover {
    color: var(--text-primary);
    background-color: var(--border-color);
    border-color: var(--text-muted);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-read-toggle.active {
    color: var(--accent-red);
    border-color: var(--status-red-border);
    background-color: var(--status-red-bg);
}
.btn-read-toggle.active:hover {
    color: var(--accent-red-hover);
    background-color: var(--status-red-bg);
    border-color: var(--status-red-border);
    opacity: 0.9;
}

.btn-replied-toggle.active {
    color: var(--accent-green);
    border-color: var(--status-green-border);
    background-color: var(--status-green-bg);
}
.btn-replied-toggle.active:hover {
    color: var(--accent-green-hover);
    background-color: var(--status-green-bg);
    border-color: var(--status-green-border);
    opacity: 0.9;
}

/* Control Bar */
.control-bar {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
}

/* Modal Overlay & Card styling */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 9999999 !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}
[data-theme="light"] .modal-overlay {
    background-color: rgba(0, 0, 0, 0.45) !important;
}

.modal-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 680px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

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

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: var(--accent-red);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Info Layouts inside Modal */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-val {
    font-size: 14px;
    color: var(--text-primary);
}

.message-content-box {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-family: inherit;
}

/* Pagination Overrides */
.pagination-container nav ul,
.pagination-container ul {
    list-style: none !important;
    display: flex !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}
.pagination-container li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.pagination-container li a,
.pagination-container li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}
.pagination-container li a:hover {
    color: var(--text-primary) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}
.pagination-container li.active a,
.pagination-container li.active span {
    background: rgba(229, 9, 20, 0.15) !important;
    border: 1px solid var(--accent-red) !important;
    color: #ff6b6b !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.15) !important;
}

/* Status Badges */
.badge-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}
.badge-success {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.25) !important;
}
.badge-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.green {
    background-color: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}
.status-dot.red {
    background-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* Action Buttons */
.btn-action-view {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    color: #60a5fa !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}
.btn-action-view:hover {
    background: rgba(59, 130, 246, 0.2) !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #93c5fd !important;
    transform: translateY(-1px) !important;
}
.btn-action-delete {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
    transform: translateY(-1px) !important;
}

/* Visibility helper classes for mobile optimization */
.show-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
    .show-mobile {
        display: inline-block !important;
    }
    
    .control-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    
    .control-bar > * {
        width: 100% !important;
        max-width: none !important;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 15px;
    }
    .navbar {
        height: 60px;
    }
    .login-card {
        padding: 24px 16px;
    }
}

/* Sidebar Theme Toggle Button */
.theme-toggle-sidebar {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-size: 13.5px;
    font-weight: 500;
    font-family: var(--font-sans);
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.theme-toggle-sidebar:hover {
    background-color: var(--border-color);
}
.theme-toggle-sidebar svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    transition: transform 0.25s ease;
}
[data-theme="light"] .theme-toggle-sidebar .sun-icon {
    display: block;
}
[data-theme="light"] .theme-toggle-sidebar .moon-icon {
    display: none;
}
[data-theme="dark"] .theme-toggle-sidebar .sun-icon {
    display: none;
}
[data-theme="dark"] .theme-toggle-sidebar .moon-icon {
    display: block;
}
html:not([data-theme="light"]) .theme-toggle-sidebar .sun-icon {
    display: none;
}
html:not([data-theme="light"]) .theme-toggle-sidebar .moon-icon {
    display: block;
}

/* Collapsed Sidebar (Desktop Mode only) */
@media (min-width: 769px) {
    .layout-wrapper.sidebar-collapsed .sidebar {
        width: 80px;
    }
    
    .layout-wrapper.sidebar-collapsed .main-content {
        margin-left: 80px;
    }
    
    /* Brand logo & header */
    .layout-wrapper.sidebar-collapsed .sidebar-header {
        flex-direction: column;
        padding: 16px 0;
        align-items: center;
        gap: 16px;
    }
    .layout-wrapper.sidebar-collapsed .sidebar-brand {
        justify-content: center;
        padding: 0;
        gap: 0;
    }
    .layout-wrapper.sidebar-collapsed .sidebar-logo {
        height: 40px;
    }
    .layout-wrapper.sidebar-collapsed .sidebar-brand .brand-text {
        opacity: 0;
        visibility: hidden;
        width: 0;
        height: 0;
        overflow: hidden;
        display: none;
    }
    .layout-wrapper.sidebar-collapsed .btn-toggle-menu-sidebar {
        margin: 0;
    }
    
    /* Sidebar menu labels & list item paddings */
    .layout-wrapper.sidebar-collapsed .menu-label {
        display: none;
    }
    .layout-wrapper.sidebar-collapsed .menu-link {
        justify-content: center;
        padding: 10px;
        gap: 0;
    }
    .layout-wrapper.sidebar-collapsed .menu-link:hover {
        transform: scale(1.08); /* popout slightly without sliding left */
    }
    .layout-wrapper.sidebar-collapsed .menu-link span {
        display: none; /* Hide menu link texts */
    }
    
    /* Theme toggle sidebar button */
    .layout-wrapper.sidebar-collapsed .theme-toggle-sidebar {
        justify-content: center;
        padding: 10px;
        gap: 0;
    }
    .layout-wrapper.sidebar-collapsed .theme-toggle-sidebar .theme-text {
        display: none; /* Hide theme toggle text */
    }
    
    /* Sidebar footer */
    .layout-wrapper.sidebar-collapsed .sidebar-footer {
        flex-direction: column;
        gap: 12px;
        padding: 16px 10px;
        align-items: center;
    }
    .layout-wrapper.sidebar-collapsed .user-info {
        display: none; /* Hide name/role */
    }
}

