/* Admin Styles */

.admin-body {
    background: #000;
    color: #f5f5f5;
    min-height: 100vh;
}

/* Login */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-box {
    background: #0d0d0d;
    padding: 48px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 360px;
}

.login-box h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.login-box p {
    color: #86868b;
    font-size: 14px;
    margin-bottom: 24px;
}

.login-box input {
    width: 100%;
    padding: 14px 16px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #f5f5f5;
    font-size: 14px;
    margin-bottom: 16px;
}

.login-box input:focus {
    outline: none;
    border-color: #555;
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: #f5f5f5;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-box button:hover {
    background: #fff;
}

.login-hint {
    font-size: 12px !important;
    color: #5a5a5a !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

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

/* Sidebar */
.admin-sidebar {
    width: 200px;
    background: #0d0d0d;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    flex-shrink: 0;
}

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

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.sidebar-header span {
    font-size: 11px;
    color: #5a5a5a;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    padding: 10px 20px;
    color: #86868b;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.nav-item:hover,
.nav-item.active {
    color: #f5f5f5;
    background: rgba(255, 255, 255, 0.03);
    border-left-color: #f5f5f5;
}

/* Main */
.admin-main {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    max-width: 700px;
}

.admin-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-section.active {
    display: block;
}

.admin-section h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.form-group label {
    display: block;
    font-size: 12px;
    color: #86868b;
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #f5f5f5;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #555;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Actions */
.form-actions {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-save {
    padding: 10px 24px;
    background: #f5f5f5;
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    background: #fff;
    transform: translateY(-1px);
}

.save-msg {
    font-size: 13px;
    color: #4ade80;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.save-msg.show {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-container {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 16px;
    }
    
    .nav-item {
        padding: 14px 16px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    
    .nav-item:hover,
    .nav-item.active {
        border-left: none;
        border-bottom-color: #f5f5f5;
    }
    
    .admin-main {
        padding: 24px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
