/* Auth Pages Styling - Login, Register, Settings */

:root {
    --primary-dark: #1E3A5F;
    --primary-medium: #2B5A8E;
    --accent-blue: #3D7CC9;
    --light-blue: #7CA3D4;
    --light-blue-soft: #BAD4EC;
    --auth-radius: 16px;
}

/* Auth page body styling */
body.auth-page {
    background: linear-gradient(135deg, #1E3A5F 0%, #2B5A8E 50%, #3D7CC9 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 1rem;
}

body.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 3px
        );
    pointer-events: none;
}

/* Auth container */
.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    padding: 1rem;
}

/* Auth card with glassmorphism */
.auth-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--auth-radius);
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

/* Language selector dropdown */
.language-selector {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.language-dropdown {
    position: relative;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-toggle:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-toggle .flag {
    font-size: 1.25rem;
}

.language-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.language-dropdown.open .language-toggle i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.language-dropdown.open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: var(--primary-dark);
    font-weight: 500;
}

.language-option:hover {
    background: rgba(61, 124, 201, 0.1);
}

.language-option.active {
    background: rgba(61, 124, 201, 0.15);
    color: var(--accent-blue);
}

.language-option .flag {
    font-size: 1.25rem;
}

/* Logo and branding - left aligned */
.auth-header {
    margin-bottom: 2rem;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(61, 124, 201, 0.15);
}

.auth-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--accent-blue) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(43, 90, 142, 0.3);
    flex-shrink: 0;
}

.auth-logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

/* Title styling */
.auth-title {
    color: var(--primary-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--primary-medium);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Form group with modern labels */
.auth-form-group {
    margin-bottom: 1.25rem;
}

.auth-form-group label {
    display: block;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.auth-form-group .form-control,
.auth-form-group .form-select {
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.auth-form-group .form-control:focus,
.auth-form-group .form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(61, 124, 201, 0.1);
    outline: none;
}

.auth-form-group .form-control::placeholder {
    color: #a0aec0;
}

.auth-form-group .text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Language input select styling */
.auth-form-group .language-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form-group .language-select .flag {
    font-size: 1.25rem;
}

.auth-form-group .form-control::placeholder {
    color: #a0aec0;
}

.auth-form-group .text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Checkbox styling */
.auth-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--accent-blue);
}

.auth-checkbox label {
    margin: 0;
    color: var(--primary-medium);
    cursor: pointer;
    user-select: none;
    font-size: 0.9rem;
}

/* Button styling */
.auth-btn {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--accent-blue) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(43, 90, 142, 0.3);
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 90, 142, 0.4);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--light-blue) 100%);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn i {
    font-size: 1.1rem;
}

/* Secondary button */
.auth-btn-secondary {
    background: white;
    border: 2px solid var(--primary-medium);
    color: var(--primary-medium);
    box-shadow: none;
}

.auth-btn-secondary:hover {
    background: var(--primary-medium);
    color: white;
}

/* Auth footer */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e6ed;
}

.auth-footer-text {
    color: var(--primary-medium);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.auth-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.auth-link:hover {
    color: var(--primary-medium);
    text-decoration: underline;
}

/* App info banner */
.auth-app-info {
    background: linear-gradient(135deg, rgba(61, 124, 201, 0.1) 0%, rgba(186, 212, 236, 0.1) 100%);
    border: 1px solid rgba(61, 124, 201, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1.5rem;
    text-align: center;
}

.auth-app-info-text {
    color: var(--primary-medium);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.auth-app-info-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.auth-app-info-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-app-info-link i {
    font-size: 0.75rem;
}

/* Made by footer */
.auth-made-by {
    text-align: center;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.auth-made-by a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-made-by a:hover {
    color: var(--light-blue-soft);
    text-decoration: underline;
}

/* Validation summary */
.auth-validation-summary {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid #dc3545;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.auth-validation-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

.auth-validation-summary li {
    color: #dc3545;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container-split {
        flex-direction: column;
        max-width: 600px;
    }

    .auth-card-right {
        order: -1;
    }

    .auth-logo-top {
        position: static;
        margin-bottom: 1.5rem;
        justify-content: center;
    }

    .auth-title-large {
        font-size: 1.75rem !important;
    }

    .auth-card-compact {
        padding: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-logo-text {
        font-size: 1.5rem;
    }

    .auth-logo-icon {
        width: 50px;
        height: 50px;
    }

    .auth-logo-icon i {
        font-size: 1.5rem;
    }

    .language-selector {
        top: 1rem;
        right: 1rem;
    }

    .language-btn {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
}

/* Settings page specific styles */
.settings-container {
    max-width: 750px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
}

.settings-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--gray-200);
}

.settings-card h3 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-blue-soft);
    font-size: 1.15rem;
}

.settings-display-group {
    padding: 0.875rem 1rem;
    background: rgba(186, 212, 236, 0.06);
    border-radius: 8px;
    margin-bottom: 0;
    border: 1px solid rgba(186, 212, 236, 0.15);
}

.settings-display-label {
    color: var(--primary-medium);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.settings-display-value {
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.settings-btn {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--accent-blue) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(43, 90, 142, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 90, 142, 0.4);
}

.settings-btn i {
    font-size: 1rem;
}

.settings-btn-secondary {
    background: white;
    border: 2px solid var(--primary-medium);
    color: var(--primary-medium);
}

.settings-btn-secondary:hover {
    background: var(--light-blue-soft);
    border-color: var(--light-blue-soft);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.settings-btn-danger {
    background: white;
    border: 2px solid #dc3545;
    color: #dc3545;
}

.settings-btn-danger:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .settings-container {
        padding: 1rem 0.75rem;
    }

    .settings-card {
        padding: 1.25rem;
    }

    .page-heading {
        font-size: 1.35rem;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 0.5rem;
    }

    .settings-container {
        padding: 0.75rem 0.5rem;
    }

    .settings-card {
        padding: 1rem;
    }

    .settings-btn,
    .auth-btn {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .page-heading {
        font-size: 1.25rem;
    }
}

/* Status message styling */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ===========================
   Page Headings
   =========================== */
.page-heading {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.5rem;
}

.page-heading i {
    color: var(--accent-blue);
}

/* ===========================
   Language Dropdown (Settings)
   =========================== */
.custom-language-select {
    position: relative;
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.language-dropdown-item {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: white;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-dropdown-item:hover {
    background-color: #f8f9fa;
}

.language-dropdown-item.active {
    background-color: #e7f1ff;
}

.form-select .fi {
    margin-right: 0.5rem;
}

/* ===========================
   Modal Styling Enhancements
   =========================== */
.modal-cancel-btn {
    background: white;
    border: 2px solid var(--primary-medium);
    color: var(--primary-medium) !important;
    transition: all 0.3s ease;
}

.modal-cancel-btn:hover {
    background: var(--light-blue-soft);
    border-color: var(--accent-blue);
    color: var(--primary-dark) !important;
}

/* ===========================
   Form Select Width Auto
   =========================== */
.form-select-auto {
    width: auto;
}

/* ===========================
   Flag Icons
   =========================== */
.fi {
    font-size: 1.2em;
    margin-right: 0.5rem;
}

.language-toggle .fi {
    font-size: 1em;
}

.language-option .fi {
    font-size: 1.1em;
}

.form-select .fi {
    margin-right: 0.5rem;
}

.form-select option {
    padding: 0.5rem;
}

/* ===========================
   Language Selector for Auth Pages
   =========================== */
.language-selector-auth-page {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.language-selector-auth-page .language-dropdown {
    position: relative;
}

.language-selector-auth-page .language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.language-selector-auth-page .language-toggle:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.language-selector-auth-page .language-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    max-height: 500px;
    overflow-y: auto;
}

.language-selector-auth-page .language-dropdown.open .language-menu {
    display: block;
}

.language-selector-auth-page .language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    border: none;
    background: white;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.language-selector-auth-page .language-option:hover {
    background: #f8f9fa;
}

.language-selector-auth-page .language-option.active {
    background: #e7f3ff;
    color: #0066cc;
}

/* ===========================
   Auth Logo at Top
   =========================== */
.auth-logo-top {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 999;
}

.auth-logo-top .auth-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2B5A8E 0%, #3D7CC9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(43, 90, 142, 0.3);
}

.auth-logo-top .auth-logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.auth-logo-top .auth-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Login Page - Split Layout
   =========================== */
.auth-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.auth-container-split {
    max-width: 1100px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    width: 100%;
}

.auth-card-left,
.auth-card-right {
    flex: 1;
}

.auth-title-large {
    font-size: 2.25rem !important;
}

.auth-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-info-title {
    color: #1E3A5F;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.auth-info-description {
    color: #2B5A8E;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.auth-link-simple {
    color: #3D7CC9;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.auth-link-simple:hover {
    color: #1E3A5F;
    text-decoration: underline;
}

/* ===========================
   Register Page - Compact Layout
   =========================== */
.auth-card-compact {
    padding: 1.75rem !important;
}

.auth-header-compact {
    margin-bottom: 1.25rem !important;
}

.auth-card-compact .auth-form-group {
    margin-bottom: 1rem !important;
}

.auth-card-compact .row {
    margin-bottom: 0 !important;
}

.auth-card-compact .row .auth-form-group {
    margin-bottom: 0.75rem !important;
}

/* ===========================
   Action Buttons - Universal Button Styling
   Description: Algemene knop stijlen voor consistente UI
   Gebruik deze voor alle grote actie knoppen (Nieuw, Opslaan, Terug, Annuleren, etc.)
   =========================== */

/* Base action button - gebruikt voor primaire acties zoals Opslaan, Nieuw */
.action-btn {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--accent-blue) 100%);
    border: none;
    border-radius: 10px;
    color: white !important;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(43, 90, 142, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 90, 142, 0.4);
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--light-blue) 100%);
    color: white !important;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn i {
    font-size: 1rem;
}

/* Secondary action button - voor Annuleren, Terug */
.action-btn-secondary {
    background: white;
    border: 2px solid var(--primary-medium);
    border-radius: 10px;
    color: var(--primary-medium) !important;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.action-btn-secondary:hover {
    background: var(--light-blue-soft);
    border-color: var(--light-blue-soft);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn-secondary:active {
    transform: translateY(0);
}

.action-btn-secondary i {
    font-size: 1rem;
}

/* Danger action button - voor Verwijderen, Logout */
.action-btn-danger {
    background: white;
    border: 2px solid #dc3545;
    border-radius: 10px;
    color: #dc3545 !important;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.action-btn-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.action-btn-danger:active {
    transform: translateY(0);
}

.action-btn-danger i {
    font-size: 1rem;
}

/* Small action buttons */
.action-btn-sm,
.action-btn-secondary-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 576px) {
    .action-btn,
    .action-btn-secondary,
    .action-btn-danger {
        padding: 0.65rem 1.25rem;
        font-size: 0.95rem;
    }
}
