/**
 * LA Spas Kiosk - Admin Styles
 */

:root {
    --admin-primary: #8b5cf6;
    --admin-primary-dark: #7c3aed;
    --admin-secondary: #64748b;
    --admin-success: #22c55e;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-info: #3b82f6;
    
    /* Dark Theme Colors */
    --admin-bg: #0f172a;
    --admin-sidebar-bg: rgba(15, 23, 42, 0.95);
    --admin-card-bg: rgba(30, 41, 59, 0.7);
    --admin-border: rgba(255, 255, 255, 0.1);
    
    --admin-text: #f1f5f9;
    --admin-text-muted: #94a3b8;
    --admin-text-light: #64748b;
    
    --admin-sidebar-width: 250px;
    --admin-header-height: 60px;
    
    --admin-radius: 12px;
    --admin-shadow: 0 4px 15px rgba(0,0,0,0.3);
    --admin-shadow-lg: 0 20px 40px rgba(0,0,0,0.4);
    
    /* Glass Effects */
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 20px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--admin-bg);
    color: var(--admin-text);
    line-height: 1.5;
}

body.admin-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    min-height: 100vh;
}

/* Auth Page - Glassmorphism Design */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('/assets/images/login-background.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 45px 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(10px);
    color: white;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-logo-img {
    max-width: 360px;
    max-height: 240px;
    margin: 0 auto 25px;
    display: block;
    filter: invert(1) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.auth-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.auth-form .form-group {
    margin-bottom: 22px;
}

.auth-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.auth-form input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    font-size: 15px;
    color: white;
    transition: all 0.3s ease;
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.auth-card .btn-primary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.auth-card .alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fecaca;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 25px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--glass-border);
    border-radius: var(--admin-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(30, 41, 59, 0.6);
    color: var(--admin-text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--admin-text);
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    color: white !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
    color: white !important;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--admin-sidebar-width);
    background: var(--admin-sidebar-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid var(--glass-border);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sidebar-logo {
    max-width: 360px;
    max-height: 100px;
    filter: invert(1) brightness(1.2);
    transition: all 0.3s ease;
}

.sidebar-logo:hover {
    filter: invert(1) brightness(1.4);
    transform: scale(1.02);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--admin-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.logo-text {
    font-weight: 600;
    font-size: 16px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: rgba(79, 70, 229, 0.3);
    color: white;
    border-right: 3px solid var(--admin-primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-item.logout:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Nav Divider and Section */
.nav-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 15px 0 0 0;
}

.nav-section-title {
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.3);
    margin-bottom: 5px;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: var(--admin-sidebar-width);
    display: flex;
    flex-direction: column;
}

.admin-header {
    height: var(--admin-header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-header h1 {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--admin-text);
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-content {
    flex: 1;
    padding: 30px;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: var(--admin-radius);
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Cards - Dark Glass */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--admin-radius);
    box-shadow: var(--admin-shadow);
    margin-bottom: 20px;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--admin-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--admin-shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-icon.bg-blue { background: var(--admin-info); }
.stat-icon.bg-green { background: var(--admin-success); }
.stat-icon.bg-purple { background: var(--admin-primary); }

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.stat-content p {
    color: var(--admin-text-muted);
    font-size: 14px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--admin-radius);
    text-decoration: none;
    color: var(--admin-text);
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.action-btn i {
    font-size: 24px;
    color: var(--admin-primary);
}

/* Connected Sites */
.connected-sites {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--admin-radius);
    text-decoration: none;
    color: var(--admin-text);
    transition: all 0.3s ease;
}

.site-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.1);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.site-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--admin-primary), #6366f1);
    border-radius: 12px;
    color: white;
    font-size: 20px;
}

.site-info {
    flex: 1;
}

.site-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.site-info p {
    margin: 0;
    font-size: 13px;
    color: var(--admin-text-muted);
}

.site-arrow {
    color: var(--admin-text-muted);
    transition: all 0.2s;
}

.site-card:hover .site-arrow {
    color: var(--admin-primary);
    transform: translateX(3px);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    color: var(--admin-text-muted);
    background: rgba(255, 255, 255, 0.03);
}

.table tbody tr:hover {
    background: rgba(139, 92, 246, 0.08);
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table .actions {
    display: flex;
    gap: 8px;
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select,
select.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--admin-radius);
    font-size: 14px;
    font-family: inherit;
    color: var(--admin-text);
    transition: all 0.3s ease;
}

.form-group select,
select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-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 16px center;
    padding-right: 40px;
}

.form-group select option,
select.form-control option {
    background: #1e293b;
    color: #f1f5f9;
    padding: 12px 16px;
}

.form-group select option:hover,
.form-group select option:focus,
.form-group select option:checked,
select.form-control option:hover,
select.form-control option:focus,
select.form-control option:checked {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--admin-text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
select.form-control:focus {
    outline: none;
    border-color: var(--admin-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--admin-text-muted);
    font-size: 13px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--admin-border);
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
}

/* Color Input */
.form-group input[type="color"] {
    padding: 4px;
    height: 45px;
    cursor: pointer;
}

/* Dynamic Page Section */
.dynamic-page-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--admin-radius);
}

.dynamic-page-section .checkbox-label {
    font-weight: 500;
}

.dynamic-page-section small {
    display: block;
    margin-top: 8px;
    color: var(--admin-text-muted);
}

/* Data Source Field */
.data-source-field {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: var(--admin-radius);
}

.data-source-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.data-source-field small {
    display: block;
    margin-top: 8px;
    color: var(--admin-text-muted);
}

/* Header/Footer Section */
.header-footer-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--admin-radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.header-footer-section .form-group {
    margin-bottom: 0;
}

.section-links {
    display: block;
    margin-top: 10px;
    color: var(--admin-text-muted);
}

.section-links a {
    color: var(--admin-primary);
    text-decoration: none;
}

.section-links a:hover {
    text-decoration: underline;
}

/* Page Actions */
.page-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--admin-text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--admin-text);
}

.empty-state .btn {
    margin-top: 20px;
}

.text-muted {
    color: var(--admin-text-muted);
}

/* =====================================================
   LIQUID GLASS DASHBOARD STYLES
   ===================================================== */

.dashboard-container {
    position: relative;
    min-height: calc(100vh - var(--admin-header-height) - 40px);
    overflow: hidden;
}

/* Animated Background Blobs */
.liquid-bg {
    position: fixed;
    top: 0;
    left: var(--admin-sidebar-width);
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    bottom: -50px;
    left: 10%;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    top: 40%;
    right: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* Welcome Section */
.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    margin-bottom: 25px;
}

.welcome-content h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-content p {
    color: var(--admin-text-muted);
    font-size: 16px;
}

.welcome-illustration {
    font-size: 60px;
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.8;
}

/* Glass Card Base */
.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 25px;
    overflow: hidden;
}

.glass-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.glass-card-header h2 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glass-card-header h2 i {
    color: var(--admin-primary);
}

.glass-card-body {
    padding: 25px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Glass Stat Card */
.glass-stat-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    top: -30px;
    right: -30px;
    transition: all 0.3s ease;
}

.glass-stat-card:hover .stat-glow {
    opacity: 0.6;
    transform: scale(1.2);
}

.stat-glow.blue { background: #3b82f6; }
.stat-glow.green { background: #22c55e; }
.stat-glow.purple { background: #8b5cf6; }
.stat-glow.orange { background: #f59e0b; }

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon-wrapper.blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.stat-icon-wrapper.green { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.stat-icon-wrapper.purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.stat-icon-wrapper.orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

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

.stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: var(--admin-text);
}

.stat-label {
    font-size: 14px;
    color: var(--admin-text-muted);
    margin-top: 5px;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.glass-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: var(--admin-text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.glass-action-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.action-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.action-icon.green { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); }
.action-icon.purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.action-icon.orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

/* Pages List */
.pages-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.page-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    transform: translateX(5px);
}

.page-info strong {
    display: block;
    margin-bottom: 5px;
}

.page-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.page-date {
    color: var(--admin-text-muted);
}

/* Glass Badges */
.glass-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-badge.success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.glass-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.glass-badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

/* Glass Buttons */
.glass-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--admin-text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.glass-btn-sm:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.glass-btn-sm.primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
}

.glass-btn-sm.primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

/* Empty State Glass */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--admin-text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
    background: linear-gradient(135deg, #a78bfa 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state a {
    color: var(--admin-primary);
    text-decoration: none;
    font-weight: 500;
}

.empty-state a:hover {
    text-decoration: underline;
}
