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

:root {
    --bg-modal: #10171d;
    --bg-secondary: #233445;
    --text-primary: #ecf0f1;
    --text-secondary: #95a5a6;
    --orange-1: #cd6e1c;
    --orange-2: #f39c12;
    --brand-gradient: linear-gradient(135deg, var(--orange-1), var(--orange-2));
}

body.admin-mode {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif !important;
    margin: 0;
    padding: 0;
}

.admin-mode h1,
.admin-mode h2,
.admin-mode h3,
.admin-mode h4,
.admin-mode h5,
.admin-mode h6 {
    color: var(--text-primary);
}

#admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--bg-modal);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width:thin;
    scrollbar-color: var(--orange-1) transparent;
    
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
    opacity: 0.8;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--orange-1);
    border-radius: 10px;
}

.admin-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 40px;
    padding: 0 12px;
}

.admin-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.admin-logo-text {
    line-height: 1.2;
}

.admin-logo-text .main {
    font-size: 18px;
    font-weight: 800;
    color: var(--orange-2);
    display: block;
    letter-spacing: 1px;
}

.admin-logo-text .sub {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
}

.sidebar-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 20px;
    margin-bottom: 12px;
    padding-left: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--text-primary);
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.sidebar-menu a.active {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.sidebar-menu a i,
.sidebar-menu a svg {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    stroke-width: 2px;
}

.has-arrow {
    margin-left: auto;
    width: 14px !important;
    height: 14px !important;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.sidebar-menu a.active .has-arrow {
    color: #fff !important;
}

.sidebar-menu .has-submenu {
    position: relative;
}

.sidebar-menu .submenu {
    list-style: none;
    padding-left: 20px;
    margin: 10px 0 15px 0;
    display: none; /* Collapsed by default */
    background-color: var(--bg-modal);
}

.sidebar-menu .has-submenu.open > .submenu {
    display: block;
    background-color: var(--bg-modal);
    
}

.sidebar-menu .has-submenu.open > a .has-arrow {
    transform: rotate(90deg);
}

.sidebar-menu .submenu li a {
    padding: 10px 14px;
    font-size: 13px;
    opacity: 0.8;
    border-bottom: 1px solid var(--orange-1);
}

.sidebar-menu .submenu li a:hover {
    opacity: 1;
    background: transparent;
    color: var(--orange-2);
}

.sidebar-menu .submenu li a.active {
    background: transparent;
    box-shadow: none;
    color: var(--orange-2);
    font-weight: 600;
}

.admin-main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    padding-bottom:0px;
    margin-left: 260px;
    /* offset sidebar */
    min-height: 100vh;
    gap:30px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.topbar-search input {
    background: var(--bg-modal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--text-primary);
    outline: none;
    width: 300px;
    transition: all 0.3s;
}

.topbar-search input:focus {
    border-color: var(--orange-1);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}

.topbar-search input::placeholder {
    color: var(--text-secondary);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-actions button {
    background: var(--bg-modal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.topbar-actions button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.notif-btn {
    position: relative;
}

.notif-btn .blip {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    border: 2px solid var(--bg-modal);
    border-radius: 50%;
    display: none;
}

.notif-btn.active .blip {
    display: block;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.notif-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    width: 320px;
    background: var(--bg-modal);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    z-index: 1100;
    display: none;
    padding: 15px;
}

.notif-dropdown.show {
    display: block;
}

.notif-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.notif-dropdown-header h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.notif-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.3s;
    text-decoration: none !important;
    color: inherit;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.notif-item-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-item-content h5 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 2px 0;
}

.notif-item-content p {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
}

.admin-footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-footer a {
    color: var(--orange-2);
    text-decoration: none;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-modal);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(243, 156, 18, 0.1));
    color: var(--orange-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-info h5 {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.stat-info span {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

/* Notifications Box Override */
.notification-alert-box {
    background: var(--bg-modal) !important;
    border-left: 5px solid var(--orange-2) !important;
}

.notification-alert-box h4 {
    color: var(--text-primary) !important;
}

.notification-alert-box p,
.notification-alert-box strong {
    color: var(--text-secondary) !important;
}

.notification-alert-box .btn-warning {
    background: var(--brand-gradient);
    border: none;
    color: white;
}

#notificationDetails .card {
    background: var(--bg-modal) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

#notificationDetails .bg-light {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--orange-1) !important;
}

#notificationDetails h6 {
    color: var(--orange-2) !important;
}

#notificationDetails p {
    color: var(--text-secondary) !important;
}

/* Modals */
.admin-mode .modal-content {
    background-color: var(--bg-modal);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.admin-mode .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 24px;
}

.admin-mode .modal-header .modal-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
}

.admin-mode .modal-header .close {
    color: var(--text-secondary);
    text-shadow: none;
    opacity: 1;
}
.admin-mode .modal-header .close:hover {
    color: var(--text-primary);
}

.admin-mode .modal-body {
    padding: 24px;
}

.admin-mode .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 24px;
}

.admin-mode .modal-content .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
}

.admin-mode .modal-content .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--orange-2);
    box-shadow: none;
}

.admin-mode .modal-content label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 13px;
}