    /* ===== USER PROFILE STYLES ===== */
/* Using your restaurant color palette */

:root {
    /* Your Restaurant Color Palette */
    --primary: #E63946;
    --primary-dark: #D62839;
    --primary-light: #FF6B6B;
    --primary-50: #FFE5E7;
    
    --secondary: #F4A261;
    --secondary-dark: #E76F51;
    --secondary-light: #FFD166;
    
    --accent: #0056b3;
    --accent-dark: #007bff;
    --accent-light: #83C5BE;
    
    --neutral-dark: #2D3436;
    --neutral-medium: #636E72;
    --neutral-light: #DFE6E9;
    --neutral-50: #F8F9FA;
    
    --success: #3498DB;
    --warning: #F39C12;
    --error: #E74C3C;
    --info: #3498DB;
    
    --background: #f8f9fa;
    --surface: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border: #DFE6E9;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --radius: 0.375rem;
    --radius-lg: 0.5rem;
    --transition: all 0.15s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background);
    line-height: 1.6;
    color: var(--neutral-dark);
}

.container {
    width: 100%;
 
    margin: 20px auto;
    padding: 0 20px;
}

.profile-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 40px 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.user-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.user-type-badge i {
    color: var(--secondary-light);
    font-size: 14px;
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    z-index: 1;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    background-color: var(--neutral-50);
    transition: var(--transition);
}

.profile-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.profile-image-container:hover .profile-image,
.profile-image-container:hover .profile-image-placeholder {
    border-color: var(--secondary-light);
}

.image-upload-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    border: 2px solid white;
}

.image-upload-overlay:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.profile-image-container:hover .image-upload-overlay {
    opacity: 1;
}

.image-upload-overlay i {
    color: white;
    font-size: 18px;
}

.profile-body {
    padding: 30px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 25px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-medium);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    color: var(--primary);
}

.tab-button.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-button i {
    font-size: 16px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-label i {
    color: var(--primary);
    font-size: 14px;
    width: 16px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--surface);
    color: var(--neutral-dark);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.25);
}

.readonly-field {
    background-color: var(--neutral-50);
    cursor: not-allowed;
    border-color: var(--neutral-light);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--neutral-medium), var(--neutral-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 110, 114, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 110, 114, 0.4);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-outline-danger {
    background: transparent;
    border: 2px solid var(--error);
    color: var(--error);
}

.btn-outline-danger:hover:not(:disabled) {
    background: var(--error);
    color: white;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    min-width: auto;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    border-color: var(--error);
    color: var(--error);
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: var(--info);
    color: var(--info);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--neutral-medium);
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.upload-progress {
    display: none;
    margin-top: 10px;
    text-align: center;
    background: var(--primary);
    padding: 10px;
    border-radius: var(--radius);
    color: white;
}

.progress {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar {
    background: white;
    height: 100%;
    width: 0%;
    transition: width 0.3s;
    border-radius: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--surface);
    margin: 15% auto;
    padding: 0;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-50);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-title i {
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--neutral-medium);
    transition: var(--transition);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--primary-50);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    color: var(--neutral-dark);
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.image-actions {
    text-align: center;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

.text-muted {
    color: var(--neutral-medium);
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.text-muted i {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .profile-header {
        padding: 30px 20px 20px;
    }
    
    .profile-body {
        padding: 20px;
    }
    
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 15px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-button {
        text-align: left;
        border-bottom: 1px solid var(--border);
        border-bottom-color: transparent;
    }
    
    .tab-button.active {
        border-bottom-color: var(--primary);
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .profile-image-placeholder {
        width: 120px;
        height: 120px;
        font-size: 50px;
    }
    
    .user-type-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 15px;
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 25px 15px 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
    
    .tabs {
        gap: 5px;
    }
    
    .tab-button {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 2px;
    }
    
    .profile-image {
        border-width: 3px;
    }
    
    .tab-button.active {
        border-bottom-width: 4px;
    }
    
    .modal-content {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn:hover:not(:disabled),
    .image-upload-overlay:hover,
    .profile-image-container:hover .profile-image,
    .profile-image-container:hover .profile-image-placeholder {
        transform: none;
    }
    
    .modal-content {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--neutral-dark);
    }
    
    .profile-card {
        background: var(--neutral-dark);
        border-color: var(--neutral-medium);
    }
    
    .profile-header {
        background: linear-gradient(135deg, var(--primary-dark), var(--neutral-dark));
    }
    
    .user-type-badge {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .profile-image-placeholder {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .profile-image {
        border-color: rgba(255, 255, 255, 0.2);
        background: var(--neutral-medium);
    }
    
    .tabs {
        border-bottom-color: var(--neutral-medium);
    }
    
    .form-control {
        background: var(--neutral-medium);
        border-color: var(--neutral-light);
        color: white;
    }
    
    .form-control:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
    }
    
    .readonly-field {
        background-color: rgba(0, 0, 0, 0.2);
        border-color: var(--neutral-light);
    }
    
    .field-label {
        color: var(--neutral-light);
    }
    
    .modal-content {
        background: var(--neutral-dark);
        border-color: var(--neutral-medium);
    }
    
    .modal-header {
        background: rgba(230, 57, 70, 0.2);
        border-bottom-color: var(--neutral-medium);
    }
    
    .modal-title {
        color: var(--primary-light);
    }
    
    .modal-body {
        color: var(--neutral-light);
    }
    
    .modal-footer {
        border-top-color: var(--neutral-medium);
    }
    
    .alert {
        background-color: rgba(0, 0, 0, 0.3);
    }
    
    .alert-success {
        border-color: var(--success);
        color: var(--success);
    }
    
    .alert-danger {
        border-color: var(--error);
        color: var(--error);
    }
    
    .alert-info {
        border-color: var(--info);
        color: var(--info);
    }
    
    .alert-warning {
        border-color: var(--warning);
        color: var(--warning);
    }
    
    .password-toggle {
        color: var(--neutral-light);
    }
    
    .password-toggle:hover {
        background: rgba(255, 107, 107, 0.2);
    }
    
    .text-muted {
        color: var(--neutral-light);
    }
}

/* Print Styles */
@media print {
    .profile-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .profile-header {
        background: #000 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .tabs,
    .image-upload-overlay,
    .modal,
    .upload-progress,
    .btn {
        display: none !important;
    }
    
    .tab-content {
        display: block !important;
    }
}

/* Focus indicators for accessibility */
.form-control:focus-visible,
.btn:focus-visible,
.tab-button:focus-visible,
.password-toggle:focus-visible,
.modal-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading animation for buttons */
.btn i.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom scrollbar for modal content */
.modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--neutral-50);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

@media (prefers-color-scheme: dark) {
    .modal-content::-webkit-scrollbar-track {
        background: var(--neutral-medium);
    }
    
    .modal-content::-webkit-scrollbar-thumb {
        background: var(--primary-light);
    }
}