 /* Account Settings Styles */
.account-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.account-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.account-card-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-card-header.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.account-card-body {
    padding: 20px;
}

.account-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.account-info-item:last-child {
    border-bottom: none;
}

.account-info-label {
    font-weight: 600;
    color: #374151;
    flex: 0 0 40%;
}

.account-info-value {
    color: #1f2937;
    flex: 1;
    text-align: left;
}

.map-link {
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #1d4ed8;
}

/* Form Styles */
.profile-update-form,
.password-change-form,
.financial-account-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button Styles */
.hayat-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.hayat-button-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.hayat-button-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.hayat-button-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.hayat-button-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.hayat-button-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.hayat-button-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Status Messages */
#profile-update-status,
#password-change-status,
#financial-account-status,
#delete-account-status {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.status-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Danger Zone Styles */
.danger-zone {
    border-color: #ef4444;
}

.danger-warning {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.danger-warning p {
    margin: 0 0 8px 0;
    color: #991b1b;
}

.danger-warning p:last-child {
    margin-bottom: 0;
}

.delete-form {
    margin-top: 20px;
    padding: 20px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Legal Links Styles */
.legal-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.legal-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s ease;
}

.legal-link:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #334155;
}

.legal-link.privacy {
    border-left: 4px solid #3b82f6;
}

.legal-link.terms {
    border-left: 4px solid #10b981;
}

.legal-link i:first-child {
    font-size: 1.2rem;
}

.legal-link i:last-child {
    font-size: 0.875rem;
    margin-left: auto;
}

/* Legal Content Styles */
.hayat-legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.legal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.legal-header h1 {
    color: #1f2937;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.last-updated {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.legal-body {
    line-height: 1.7;
    color: #374151;
}

.legal-body h2 {
    color: #1f2937;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.legal-body ul {
    margin: 15px 0;
    padding-right: 20px;
}

.legal-body li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .account-info-label {
        flex: none;
    }
    
    .legal-links-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .hayat-button {
        width: 100%;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styling */
.hayat-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.hayat-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hayat-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hayat-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.hayat-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.hayat-modal-close:hover {
    opacity: 0.7;
}

.hayat-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}

.hayat-modal-body h2 {
    color: #333;
    font-size: 1.2rem;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.hayat-modal-body ul {
    margin: 15px 0;
    padding-right: 20px;
}

.hayat-modal-body li {
    margin-bottom: 8px;
    color: #555;
}

.hayat-modal-body p {
    color: #666;
    margin-bottom: 15px;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .hayat-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .hayat-modal-header {
        padding: 15px;
    }
    
    .hayat-modal-header h3 {
        font-size: 1.1rem;
    }
    
    .hayat-modal-body {
        padding: 20px;
        max-height: 70vh;
    }
}
