/* Modern Account Section */

/* Header */
.account-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 50%, #6D28D9 100%);
    border-radius: 20px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.25);
    position: relative;
    overflow: hidden;
}

.account-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.account-header .header-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.account-header .header-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.account-header .header-content p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Section Cards */
.account-section-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 24px;
    border: 2px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.account-section-card:hover {
    border-color: #e9d5ff;
    box-shadow: 0 8px 24px rgba(141, 63, 242, 0.1);
    transform: translateY(-2px);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-bottom: 2px solid #e9d5ff;
}

.section-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.3);
}

.section-title h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
    letter-spacing: -0.3px;
}

.section-title p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Section Content */
.section-content {
    padding: 28px;
}

/* Modern Input Group */
.modern-input-group {
    margin-bottom: 24px;
}

.modern-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.modern-label i {
    color: #8D3FF2;
    font-size: 16px;
}

.required-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.input-wrapper {
    position: relative;
}

.modern-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    color: #1f2937;
    transition: all 0.3s ease;
    background: #ffffff;
}

.modern-input:focus {
    outline: none;
    border-color: #8D3FF2;
    box-shadow: 0 0 0 4px rgba(141, 63, 242, 0.1);
}

.modern-input::placeholder {
    color: #9ca3af;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #10b981;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-input:valid + .input-icon {
    opacity: 1;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 12px 16px;
    background: #fee2e2;
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

.error-message i {
    font-size: 16px;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.info-box i {
    font-size: 24px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.info-box p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Language Selector */
.language-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-option:not(.disabled):hover {
    border-color: #8D3FF2;
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.15);
    transform: translateX(4px);
}

.language-option.active {
    border-color: #8D3FF2;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.2);
}

.language-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.language-flag {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #ffffff;
}

.language-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.language-info {
    flex: 1;
}

.language-info h5 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.language-info p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.language-check {
    font-size: 24px;
    color: #8D3FF2;
}

.language-badge {
    padding: 6px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    border: 1px solid #fbbf24;
}

.language-badge span {
    font-size: 13px;
    font-weight: 700;
    color: #d97706;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .account-header {
        padding: 24px;
    }

    .account-header .header-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .account-header .header-content h3 {
        font-size: 24px;
    }

    .section-header {
        padding: 20px 24px;
    }

    .section-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .section-title h4 {
        font-size: 18px;
    }

    .section-content {
        padding: 24px;
    }

    .modern-input {
        padding: 14px 45px 14px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .account-header {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .account-header .header-content h3 {
        font-size: 22px;
    }

    .account-header .header-content p {
        font-size: 14px;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .section-content {
        padding: 20px;
    }

    .modern-label {
        flex-wrap: wrap;
    }

    .required-badge {
        margin-left: 0;
    }

    .language-option {
        padding: 16px;
    }

    .language-flag {
        width: 40px;
        height: 40px;
    }

    .language-info h5 {
        font-size: 16px;
    }

    .language-info p {
        font-size: 13px;
    }

    .info-box {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.account-section-card {
    animation: slideInLeft 0.4s ease-out backwards;
}

.email-card {
    animation-delay: 0.1s;
}

.language-card {
    animation-delay: 0.2s;
}

.vacation-card {
    animation-delay: 0.1s;
}

.features-card {
    animation-delay: 0.2s;
}

/* Vacation Mode Styles */
.vacation-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f5ff 0%, #f3f0ff 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    border: 2px solid #e9d5ff;
    transition: all 0.3s ease;
}

.vacation-toggle-wrapper:hover {
    border-color: #8D3FF2;
    box-shadow: 0 4px 16px rgba(141, 63, 242, 0.1);
}

.vacation-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.vacation-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e9d5ff 0%, #d8b4fe 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #8D3FF2;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.vacation-icon.active {
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(141, 63, 242, 0.3);
}

.vacation-text h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
}

.vacation-text p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Modern Toggle Switch */
.modern-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
}

.modern-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modern-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #8D3FF2 0%, #7C3AED 100%);
}

.modern-toggle input:focus + .toggle-slider {
    box-shadow: 0 0 0 3px rgba(141, 63, 242, 0.2);
}

.modern-toggle input:checked + .toggle-slider:before {
    transform: translateX(28px);
}

/* Info Box Variants */
.info-box.success {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #a7f3d0;
}

.info-box.success i {
    color: #059669;
}

.info-box.success strong {
    color: #065f46;
}

.info-box.success p {
    color: #047857;
}

.info-box.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}

.info-box.warning i {
    color: #f59e0b;
}

.info-box.warning strong {
    color: #92400e;
}

.info-box.warning p {
    color: #b45309;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #f3f4f6;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #e9d5ff;
    box-shadow: 0 4px 12px rgba(141, 63, 242, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #8D3FF2;
    flex-shrink: 0;
}

.feature-content h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px 0;
}

.feature-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .vacation-toggle-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }

    .vacation-info {
        flex-direction: column;
        text-align: center;
    }

    .modern-toggle {
        align-self: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .vacation-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .vacation-text h5 {
        font-size: 16px;
    }

    .vacation-text p {
        font-size: 13px;
    }
}
