/* Admin Panel Styles */
.admin-login-btn {
    opacity: 0.4;
    transition: opacity 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.admin-login-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.admin-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.admin-modal {
    background: #ffffff;
    width: 90%;
    max-width: 900px;
    height: 85vh;
    max-height: 85vh;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.admin-modal-overlay.active .admin-modal {
    transform: scale(1);
}

.admin-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2a4a6a 100%);
    color: white;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.admin-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: white;
}

.admin-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.admin-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.admin-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: #f5efe6;
    min-height: 0;
}

.admin-sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e5e0da;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    flex-shrink: 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    color: #5c554d;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: all 0.2s;
}

.admin-nav-item:hover {
    background: #f5f0ec;
    color: #2a4a6a;
}

.admin-nav-item.active {
    background: #e9edf1;
    color: #2a4a6a;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    min-height: 0;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section h3 {
    font-size: 1.25rem;
    color: #2a2a2a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e0da;
}

.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-form-group label {
    display: block;
    font-weight: 600;
    color: #4a453f;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.admin-form-group input[type="text"],
.admin-form-group input[type="password"],
.admin-form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d6d0c9;
    border-radius: 0.6rem;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #ffffff;
    box-sizing: border-box;
}

.admin-form-group input[type="text"]:focus,
.admin-form-group input[type="password"]:focus,
.admin-form-group textarea:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

.admin-form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.admin-lang-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #e5e0da;
    padding: 0.35rem;
    border-radius: 0.75rem;
    width: fit-content;
}

.admin-lang-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    color: #7a6f63;
    transition: all 0.2s;
}

.admin-lang-tab.active {
    background: #ffffff;
    color: #2a4a6a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.admin-footer {
    background: #ffffff;
    padding: 1.25rem 2rem;
    border-top: 1px solid #e5e0da;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.admin-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.admin-btn-primary {
    background: #1e3a5f;
    color: white;
}

.admin-btn-primary:hover {
    background: #2a4a6a;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.admin-btn-secondary {
    background: #f5f0ec;
    color: #5c554d;
}

.admin-btn-secondary:hover {
    background: #e5e0da;
    color: #2a2a2a;
}

.admin-btn-danger {
    background: #fee2e2;
    color: #dc2626;
}

.admin-btn-danger:hover {
    background: #fecaca;
}

.admin-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2a4a6a;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    z-index: 10001;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Selector Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.theme-card {
    background: #ffffff;
    border: 2px solid #e5e0da;
    border-radius: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.theme-card:hover {
    border-color: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
}

.theme-card.active {
    border-color: #1e3a5f;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.2);
}

.theme-card h4 {
    font-size: 1rem;
    color: #2a2a2a;
    margin: 0;
    font-weight: 700;
}

.theme-swatches {
    display: flex;
    gap: 0.5rem;
}

.theme-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
