/* Base Admin Styles - Zencia Dark Tech Theme */

:root {
    /* Brand Colors */
    --primary: #00D9D5;
    --primary-dark: #008B8B;
    --primary-glow: rgba(0, 217, 213, 0.3);
    --danger: #ff5b5b;
    
    /* Backgrounds */
    --bg-dark: #0a0a0a;
    --bg-glass: rgba(20, 20, 20, 0.7);
    --bg-card: rgba(30, 30, 30, 0.6);
    
    /* Text */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Borders */
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Dimensions */
    --header-height: 70px;
    --sidebar-width: 260px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

/* --- Fixed Background Animation --- */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at top right, #1a2a2a 0%, #000000 100%);
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    right: -10%;
    animation: float 15s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #7b61ff;
    bottom: -10%;
    left: -10%;
    animation: float 12s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 50px); }
}

/* --- Header --- */
.admin-header {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

/* Logo Styling */
/* --- Logo Styling (Perfect Center) --- */
.logo {
    display: flex;
    align-items: center; /* Vertically centers the logo and text */
    gap: 12px;
    height: 100%; /* Ensures the container fills the header height */
}

.logo-img {
    height: 38px; /* Increased slightly to match the visual weight of the text */
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    display: block; /* Removes default inline image spacing */
}

.logo h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    
    /* Critical for alignment */
    margin: 0; 
    padding: 0;
    line-height: 1; /* Prevents line-height from offsetting the text */
    display: flex; 
    align-items: center;
}

.logo .highlight {
    color: var(--primary);
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 0.9rem;
}

.user-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-btn {
    background: rgba(255, 91, 91, 0.1);
    color: var(--danger);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 91, 91, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logout-btn:hover {
    background: rgba(255, 91, 91, 0.2);
    transform: translateY(-1px);
}

/* --- Layout --- */
.admin-layout {
    display: flex;
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* --- Sidebar --- */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--border-glass);
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding-top: 1rem;
}

.sidebar-nav ul {
    list-style: none;
    padding: 1rem;
}

.nav-divider {
    padding: 1rem 1rem 0.5rem 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #555;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 217, 213, 0.15), transparent);
    color: var(--primary);
    border: 1px solid rgba(0, 217, 213, 0.2);
}

.nav-icon {
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.nav-text {
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- Main Content --- */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    position: relative; 
    z-index: 1; 
}

.admin-main.full-width {
    margin-left: 0;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Common UI Components --- */

/* Glass Card Container */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

h1, h2, h3 {
    color: white;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 217, 213, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 213, 0.3);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Inputs */
input, textarea, select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    font-size: 0.9rem;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 217, 213, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 0.9rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .user-name {
        display: none;
    }
}