/* Authentication Pages Styles */
/* Import variables for consistent theming */
@import url('variables.css');

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: direction 0.3s ease;
}

/* RTL Support with Alexandria Font */
body.rtl {
    direction: rtl;
    font-family: 'Alexandria', var(--font-primary), sans-serif;
}

body.rtl * {
    font-family: 'Alexandria', var(--font-primary), sans-serif;
}

body.rtl .input-icon {
    right: auto;
    left: var(--input-padding-x);
}

body.rtl .form-input {
    padding: var(--input-padding-y) var(--input-padding-x) var(--input-padding-y) var(--input-padding-icon);
}

/* RTL Support for Flatpickr and Date Inputs */
body.rtl input[type="date"]::after,
body.rtl .flatpickr-input {
    background-position: left 16px center;
}

body.rtl .flatpickr-calendar {
    direction: rtl;
}

/* RTL Support for Button Icons */
body.rtl .btn-icon {
    transform: scaleX(-1);
}

body.rtl .profile-actions a svg,
body.rtl .btn-primary svg,
body.rtl .btn-secondary svg {
    margin-left: 8px;
    margin-right: 0;
}

/* RTL Support for Language Button */
body.rtl .btn-language {
    flex-direction: row-reverse;
}

/* RTL Support for Upload Areas */
body.rtl .upload-placeholder {
    text-align: right;
}

/* RTL Support for Remove Buttons */
body.rtl .remove-photo-btn {
    right: auto;
    left: 8px;
}

/* Language Toggle Button */
.btn-language {
    padding: 8px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-all);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-language:hover {
    background: var(--primary-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

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

.auth-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.auth-card {
    background: var(--gradient-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-primary);
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo img {
    height: 60px;
    width: auto;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    color: var(--text-primary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-2) 0;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    margin: 0;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: var(--progress-height);
    background: var(--bg-surface);
    border-radius: var(--progress-border-radius);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--transition-slow);
    width: 50%;
}

.progress-text {
    text-align: center;
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
}

/* Form Styles */
.step-content {
    transition: opacity 0.3s ease;
}

.step-content.hidden {
    display: none;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-2);
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: var(--input-padding-y) var(--input-padding-icon) var(--input-padding-y) var(--input-padding-x);
    background: var(--bg-input);
    border: var(--input-border-width) solid var(--border-primary);
    border-radius: var(--input-border-radius);
    color: var(--text-primary);
    font-size: var(--input-font-size);
    transition: var(--transition-all);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px var(--primary-hover);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.input-icon {
    position: absolute;
    right: var(--input-padding-x);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-colors);
}

.input-icon:hover {
    color: var(--text-tertiary);
}

.input-icon svg {
    display: block;
}

/* Sport Selection Grid */
.sport-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.sport-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-all);
    position: relative;
}

.sport-item:hover {
    background: var(--secondary-hover);
    border-color: var(--secondary);
}

.sport-item.selected {
    background: var(--primary-active);
    border-color: var(--primary);
    color: var(--text-primary);
}

.sport-item input[type="radio"],
.sport-item input[type="checkbox"] {
    display: none;
}

.sport-item label {
    cursor: pointer;
    margin: 0;
    font-size: 14px;
    flex: 1;
    pointer-events: auto;
}

.sport-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.2s ease;
}

.sport-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-tertiary);
    transition: var(--transition-colors);
}

.sport-item.selected .sport-icon svg {
    color: var(--primary);
}

/* Position Selection */
.position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.position-item {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-all);
    text-align: center;
}

.position-item:hover {
    background: var(--secondary-hover);
    border-color: var(--secondary);
}

.position-item.selected {
    background: var(--primary-active);
    border-color: var(--primary);
    color: var(--text-primary);
}

.position-item input[type="checkbox"],
.position-item input[type="radio"] {
    display: none;
}

.position-item label {
    cursor: pointer;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    background: var(--gradient-btn-primary);
    color: var(--text-primary);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    border: none;
    border-radius: var(--btn-border-radius);
    cursor: pointer;
    transition: var(--transition-all);
    box-shadow: var(--shadow-secondary);
}

.btn-primary:hover {
    background: var(--gradient-btn-primary-hover);
    box-shadow: var(--shadow-secondary-lg);
    transform: translateY(-1px);
}

.btn-secondary {
    padding: var(--btn-padding-y) var(--btn-padding-x);
    background: transparent;
    color: var(--text-secondary);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    border: 1px solid var(--border-primary);
    border-radius: var(--btn-border-radius);
    cursor: pointer;
    transition: var(--transition-all);
}

.btn-secondary:hover {
    background: var(--bg-input);
    border-color: var(--primary);
    color: var(--text-primary);
}

.form-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.form-actions .btn-secondary {
    flex: 0 0 120px;
}

.form-actions .btn-primary {
    flex: 1;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #334155;
}

.auth-footer p {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    margin: 0;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-colors);
}

.auth-footer a:hover {
    color: var(--primary-light);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 16px;
    }

    .auth-card {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .auth-header h1 {
        font-size: var(--font-size-2xl);
    }

    .sport-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .position-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
    }

    .form-actions .btn-secondary {
        flex: 1;
        width: 100%;
    }

    .agreement-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sport-grid {
        grid-template-columns: 1fr;
    }

    .auth-logo img {
        height: 48px;
    }
}

/* Profile Completion Page Styles */
.profile-status-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    margin-bottom: var(--space-8);
}

.status-icon {
    margin-bottom: var(--space-4);
}

.profile-status-card h2 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-3) 0;
}

.profile-status-card p {
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    line-height: 1.6;
    margin: 0;
}

/* Profile Progress */
.profile-progress {
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-8);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
}

.progress-label {
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
}

.progress-percentage {
    color: var(--primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: var(--bg-surface);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 999px;
    transition: width 0.6s ease;
}

.progress-hint {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    margin: 0;
    text-align: center;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.profile-actions .btn-primary,
.profile-actions .btn-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    text-decoration: none;
    box-sizing: border-box;
}

.profile-actions .btn-secondary {
    width: 100%;
    box-sizing: border-box;
}

/* Info Cards */
.info-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.info-card {
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    gap: var(--space-4);
}

.info-icon {
    flex-shrink: 0;
}

.info-content h3 {
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-2) 0;
}

.info-content p {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
}

.info-content ul {
    margin: 0;
    padding-left: var(--space-5);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.info-content ul li {
    margin-bottom: var(--space-1);
}

/* Agreement Section */
.alert-message {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    margin-bottom: var(--space-4);
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-md);
}

.alert-message svg {
    flex-shrink: 0;
}

.alert-message.success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.alert-message.error {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.3);
    color: #F87171;
}

.agreement-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    width: 100%;
}

@media (max-width: 992px) {
    .agreement-section {
        grid-template-columns: 1fr;
    }
}

.agreement-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    background: var(--bg-input);
    box-shadow: var(--shadow-lg);

}

.agreement-card__icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.agreement-card__content h3 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.agreement-card__content p {
    margin: 0 0 var(--space-4) 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--font-size-sm);
}

.agreement-card .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.agreement-upload-form .btn-primary {
    width: 100%;
    justify-content: center;
}

.upload-hint {
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
    margin: 0 0 var(--space-3) 0;
}

/* Support Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--gradient-surface);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.modal-content.user-type-modal {
    max-width: 900px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-colors);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: var(--space-6);
}

.modal-body textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.modal-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.modal-actions button {
    flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-actions {
        flex-direction: column;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* Profile Edit Form Styles */
.profile-section-card {
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-primary);
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-6) 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: 0;
}

.form-row .form-group {
    margin-bottom: var(--space-6);
}

/* Upload Area */
.upload-area {
    position: relative;
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    text-align: center;
    transition: var(--transition-all);
    cursor: pointer;
    background: var(--bg-input);
}

.upload-area--compact {
    padding: var(--space-6);
    min-height: 140px;
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--bg-input-focus);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-placeholder svg {
    margin: 0 auto var(--space-3);
    display: block;
}

.upload-placeholder p {
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    margin: 0 0 var(--space-1) 0;
}

.upload-placeholder span {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.upload-selected-file {
    margin-top: var(--space-3);
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Video Upload Options */
.video-upload-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Input with Button */
.input-with-button {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

.input-with-button .form-input {
    flex: 1;
    margin-bottom: 0;
}

.btn-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-all);
}

.btn-icon:hover {
    background: var(--primary-hover);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon.btn-remove {
    background: transparent;
    border-color: var(--border-primary);
}

.btn-icon.btn-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
    color: #EF4444;
}

/* Experience Item */
.experience-item {
    padding: var(--space-4);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.experience-item .form-row {
    margin-bottom: 0;
}

.experience-item .form-group {
    margin-bottom: 0;
}

/* Add Button */
.btn-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: 2px dashed var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-all);
}

.btn-add:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-hover);
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: var(--space-4);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-all);
}

.radio-label:hover {
    border-color: var(--primary);
    background: var(--primary-hover);
}

.radio-label input[type="radio"] {
    accent-color: var(--primary);
}

.radio-label input[type="radio"]:checked+span {
    color: var(--text-primary);
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: var(--primary-active);
}

/* Textarea */
textarea.form-input {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-primary);
}

/* Selected Sport Display */
.selected-sport-display .form-input {
    background: var(--bg-surface);
    cursor: not-allowed;
    color: var(--text-primary);
    font-weight: var(--font-weight-medium);
}

/* Date Input Styling */
input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
    opacity: 0;
}

input[type="date"]::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12V14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V12Z' stroke='%2394A3B8' stroke-width='1.5'/%3E%3Cpath d='M7 4V2.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M17 4V2.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M2.5 9H21.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M18 17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17C16 16.4477 16.4477 16 17 16C17.5523 16 18 16.4477 18 17Z' fill='%2394A3B8'/%3E%3Cpath d='M18 13C18 13.5523 17.5523 14 17 14C16.4477 14 16 13.5523 16 13C16 12.4477 16.4477 12 17 12C17.5523 12 18 12.4477 18 13Z' fill='%2394A3B8'/%3E%3Cpath d='M13 17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17C11 16.4477 11.4477 16 12 16C12.5523 16 13 16.4477 13 17Z' fill='%2394A3B8'/%3E%3Cpath d='M13 13C13 13.5523 12.5523 14 12 14C11.4477 14 11 13.5523 11 13C11 12.4477 11.4477 12 12 12C12.5523 12 13 12.4477 13 13Z' fill='%2394A3B8'/%3E%3Cpath d='M8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16C7.55228 16 8 16.4477 8 17Z' fill='%2394A3B8'/%3E%3Cpath d='M8 13C8 13.5523 7.55228 14 7 14C6.44772 14 6 13.5523 6 13C6 12.4477 6.44772 12 7 12C7.55228 12 8 12.4477 8 13Z' fill='%2394A3B8'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Calendar Picker Styling */
input[type="date"]::-webkit-datetime-edit {
    color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: var(--text-primary);
}

input[type="date"]::-webkit-datetime-edit-text {
    color: var(--text-muted);
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
    color: var(--text-primary);
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none;
}

/* Calendar dropdown styling (limited browser support) */
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: transparent;
}

/* Profile Picture Preview */
.profile-picture-preview {
    margin-top: var(--space-4);
}

.profile-picture-item {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    background: var(--bg-surface);
}

.profile-picture-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Photo Gallery Preview */
.photo-gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.gallery-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-primary);
    background: var(--bg-surface);
}

.gallery-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-all);
}

.gallery-photo-item:hover .remove-photo-btn {
    opacity: 1;
}

.remove-photo-btn:hover {
    background: #EF4444;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    .sport-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Flatpickr Custom Styling */
.flatpickr-calendar {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-primary) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
}

.flatpickr-months {
    background: var(--bg-input) !important;
    border-bottom: 1px solid var(--border-primary) !important;
}

.flatpickr-month {
    color: var(--text-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-primary) !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
    background: var(--bg-input-focus) !important;
}

.flatpickr-current-month .numInputWrapper input {
    color: var(--text-primary) !important;
    background: var(--bg-input) !important;
    border: 1px solid var(--border-primary) !important;
}

.flatpickr-current-month .numInputWrapper:hover input {
    background: var(--bg-input-focus) !important;
}

.flatpickr-weekdays {
    background: var(--bg-input) !important;
}

.flatpickr-weekday {
    color: var(--text-secondary) !important;
    font-weight: var(--font-weight-semibold) !important;
}

.flatpickr-days {
    background: var(--bg-surface) !important;
}

.flatpickr-day {
    color: var(--text-primary) !important;
    border: none !important;
}

.flatpickr-day:hover {
    background: var(--bg-input) !important;
    border-color: var(--border-primary) !important;
}

.flatpickr-day.today {
    border-color: var(--primary) !important;
    background: var(--primary-hover) !important;
}

.flatpickr-day.today:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary) !important;
}

.flatpickr-day.selected {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.flatpickr-day.selected:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: var(--text-muted) !important;
    background: transparent !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--text-muted) !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: var(--text-secondary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: var(--text-primary) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--text-primary) !important;
}

/* Flatpickr input icon */
.flatpickr-input {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12V14C22 17.7712 22 19.6569 20.8284 20.8284C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V12Z' stroke='%2394A3B8' stroke-width='1.5'/%3E%3Cpath d='M7 4V2.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M17 4V2.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M2.5 9H21.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M18 17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17C16 16.4477 16.4477 16 17 16C17.5523 16 18 16.4477 18 17Z' fill='%2394A3B8'/%3E%3Cpath d='M18 13C18 13.5523 17.5523 14 17 14C16.4477 14 16 13.5523 16 13C16 12.4477 16.4477 12 17 12C17.5523 12 18 12.4477 18 13Z' fill='%2394A3B8'/%3E%3Cpath d='M13 17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17C11 16.4477 11.4477 16 12 16C12.5523 16 13 16.4477 13 17Z' fill='%2394A3B8'/%3E%3Cpath d='M13 13C13 13.5523 12.5523 14 12 14C11.4477 14 11 13.5523 11 13C11 12.4477 11.4477 12 12 12C12.5523 12 13 12.4477 13 13Z' fill='%2394A3B8'/%3E%3Cpath d='M8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16C7.55228 16 8 16.4477 8 17Z' fill='%2394A3B8'/%3E%3Cpath d='M8 13C8 13.5523 7.55228 14 7 14C6.44772 14 6 13.5523 6 13C6 12.4477 6.44772 12 7 12C7.55228 12 8 12.4477 8 13Z' fill='%2394A3B8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px 20px;
    cursor: pointer;
}

/* Profile Display Styles */
.profile-info-section {
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-6);
}

.profile-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
}

.profile-info-title {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin: 0;
    text-align: right;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.profile-info-label {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-align: right;
}

.profile-info-value {
    color: var(--text-primary);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    text-align: right;
}

/* Gender field specific styling */
.profile-info-item.gender-field {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-3);
}

.profile-info-item.gender-field .profile-info-label {
    margin: 0;
}

.profile-info-item.gender-field .profile-info-value {
    margin: 0;
}

/* Responsive for profile display */
@media (max-width: 768px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-item.gender-field {
        grid-column: 1;
        justify-content: flex-start;
    }

    .profile-info-label,
    .profile-info-value {
        text-align: left;
    }
}

/* User Type Selection Modal */
.user-type-language-toggle {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-4) var(--space-6) 0;
}

.user-type-logo {
    text-align: center;
    padding: var(--space-6) 0 var(--space-4) 0;
}

.user-type-logo img {
    height: 80px;
    width: auto;
}

.user-type-welcome {
    text-align: center;
    margin-bottom: var(--space-6);
}

.user-type-welcome h1 {
    color: var(--text-primary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-type-modal .modal-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-primary);
}

.user-type-modal .modal-header h2 {
    text-align: center;
    font-size: var(--font-size-xl);
}

.user-type-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    margin: 0 0 var(--space-8) 0;
}

.user-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.user-type-card {
    background: var(--bg-input);
    border: 2px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
}

.user-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-all);
    z-index: 0;
}

.user-type-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-secondary-lg);
}

.user-type-card:hover::before {
    opacity: 0.1;
}

.user-type-card:active {
    transform: translateY(-2px);
}

.user-type-card.selected {
    border-color: var(--primary);
    background: var(--primary-active);
}

.user-type-card.selected::before {
    opacity: 0.15;
}

.user-type-card.selected .user-type-icon {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.user-type-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    color: var(--primary);
    transition: var(--transition-all);
}

.user-type-card:hover .user-type-icon {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.user-type-card h3 {
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-2) 0;
}

.user-type-card p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin: 0;
}

/* Responsive for user type modal */
@media (max-width: 768px) {
    .user-type-grid {
        grid-template-columns: 1fr;
    }

    .modal-content.user-type-modal {
        width: 95%;
        max-width: 95%;
    }
}

/* Document Upload - Horizontal Layout (Fix for Edit Profile) */
.upload-area.document-upload {
    min-height: auto;
    padding: 0 !important;
    display: flex;
}

.upload-area.document-upload .upload-placeholder {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px 24px;
    width: 100%;
    text-align: left;
}

.upload-area.document-upload .upload-placeholder svg {
    margin: 0 !important;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.upload-area.document-upload .upload-placeholder svg path {
    stroke: #0EA5E9;
}

.upload-area.document-upload .upload-placeholder>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.upload-area.document-upload .upload-placeholder p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.upload-area.document-upload .upload-placeholder span {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* RTL Support */
body.rtl .upload-area.document-upload .upload-placeholder {
    text-align: right;
}

body.rtl .upload-area.document-upload .upload-placeholder>div {
    align-items: flex-end;
}