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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
}

/* Login Page */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.login-logo {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.text-muted {
    color: #888;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4a90d9;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 144, 217, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: none;
    color: #888;
    padding: 0;
    font-size: 13px;
}

.btn-link:hover {
    color: #fff;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

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

.admin-sidebar {
    width: 260px;
    background: rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

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

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.sidebar-nav {
    flex: 1;
}

.nav-item {
    display: block;
    padding: 12px 16px;
    color: #aaa;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(74, 144, 217, 0.15);
    color: #fff;
}

.nav-item.active {
    border-left: 3px solid #4a90d9;
}

.admin-main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

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

.admin-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
}

.admin-user {
    color: #888;
    font-size: 14px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

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

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th {
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
    color: #fff;
}

.table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: rgba(40, 167, 69, 0.2);
    color: #51cf66;
}

.badge-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

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

.grid-cols-1 { grid-template-columns: 1fr; }
.lg\\:grid-cols-3 { }
.lg\\:col-span-2 { }
.lg\\:col-span-1 { }
.gap-6 { gap: 24px; }

@media (min-width: 1024px) {
    .lg\\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\\:col-span-2 { grid-column: span 2; }
    .lg\\:col-span-1 { grid-column: span 1; }
}

.space-y-4 > * + * { margin-top: 16px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-x-2 > * + * { margin-left: 8px; }
.space-x-1 > * + * { margin-left: 4px; }

.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-2 { padding-right: 8px; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-gray-500 { color: #888; }
.text-gray-700 { color: #aaa; }
.bg-gray-800 { background: rgba(255,255,255,0.05); }
.bg-gray-700 { background: rgba(255,255,255,0.08); }
.border-t { border-top: 1px solid; }
.border-gray-700 { border-color: rgba(255,255,255,0.08); }
.rounded-lg { border-radius: 8px; }
.max-h-96 { max-height: 384px; }
.overflow-y-auto { overflow-y: auto; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.mt-1 { margin-top: 4px; }
.pt-4 { padding-top: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.hover\\:bg-gray-700:hover { background: rgba(255,255,255,0.08); }
.transition { transition: all 0.2s ease; }
.cursor-pointer { cursor: pointer; }
.btn-sm { padding: 4px 8px; font-size: 0.8rem; }

.editor-container {
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
}
.ql-toolbar {
    border-radius: 8px 8px 0 0;
    background: #fafafa;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.ql-container {
    border-radius: 0 0 8px 8px;
    min-height: 250px;
    color: #000;
}
.ql-editor {
    min-height: 200px;
}
.ql-editor.ql-blank::before {
    color: #999;
    font-style: normal;
}

.stat-card {
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.1) 0%, rgba(53, 122, 189, 0.1) 100%);
    border: 1px solid rgba(74, 144, 217, 0.2);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    color: #888;
    font-size: 14px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .admin-wrapper {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        padding: 16px;
    }
    
    .admin-main {
        padding: 16px;
    }
}