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

:root {
    --bg-dark: #090a0f;
    --bg-sidebar: #10121a;
    --bg-panel: #161822;
    --primary-gold: #c5a028;
    --primary-olive: #4b5320;
    --text-light: #f3f4f6;
    --text-muted: #8b92a1;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-color-glow: rgba(197, 160, 40, 0.2);
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 0.05em;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed);
}

/* Dashboard Container */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.admin-sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo img {
    height: 36px;
}

.sidebar-logo-text {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-menu-item a:hover,
.sidebar-menu-item.active a {
    color: var(--primary-gold);
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary-gold);
    padding-left: 13px;
}

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

.sidebar-logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    color: #ea868f;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-speed);
}

.sidebar-logout-btn:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

/* Main Content Panel */
.admin-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.admin-header {
    height: 70px;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.admin-header-title {
    font-size: 1.1rem;
    text-transform: uppercase;
}

.admin-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--primary-gold);
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.admin-content {
    padding: 40px;
    overflow-y: auto;
}

/* Grid layout for widgets */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.admin-stat-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-stat-info h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.admin-stat-info .num {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
}

.admin-stat-icon {
    font-size: 2rem;
    color: var(--primary-gold);
    opacity: 0.7;
}

/* Panel Layout */
.admin-panel {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 30px;
}

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

.admin-panel-title {
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* Tables styling */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.admin-table th {
    background-color: rgba(255, 255, 255, 0.01);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.admin-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 2px;
    text-transform: uppercase;
}

.badge-unread {
    background-color: rgba(220, 53, 69, 0.15);
    color: #ea868f;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.badge-read {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffda6a;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.badge-resolved {
    background-color: rgba(40, 167, 69, 0.15);
    color: #75b798;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Buttons */
.admin-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-btn-primary {
    background: var(--primary-gold);
    color: var(--bg-dark);
    border: none;
}

.admin-btn-primary:hover {
    background: #d9b83b;
    transform: translateY(-1px);
}

.admin-btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-btn-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #ea868f;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.admin-btn-danger:hover {
    background: rgba(220, 53, 69, 0.3);
}

.admin-btn-sm {
    padding: 6px 12px;
    font-size: 0.7rem;
}

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

.admin-form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.admin-form-control {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.admin-form-control:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 8px rgba(197, 160, 40, 0.1);
}

textarea.admin-form-control {
    height: 120px;
    resize: vertical;
}

/* Alert Boxes */
.admin-alert {
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.admin-alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.2);
    color: #75b798;
}

/* Spec list manager inside Admin CRUD */
.spec-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.spec-row input {
    flex-grow: 1;
}

/* Responsive grid for admin settings */
.admin-settings-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-settings-layout {
        grid-template-columns: 1fr;
    }
}
