.register-main-conteiner {
    padding-top: 130px;
    padding-bottom: 130px;
}

.register-heading {
    color: #161C2D;
    font-size: 60px;
    font-family: 'DINBold';
    margin: 0;
    text-align: center;
}

.register-sub-heading {
    color: #161C2D;
    font-size: 19px;
    font-family: 'DINRegular';
    margin: 0;
    text-align: center;
    margin-top: 34px;
}

.sign-with-google-container {
    width: 350px;
    margin: 0 auto;
    border: 1px solid #E7E9ED;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    margin-top: 40px;
    cursor: pointer;
    box-shadow: 0px 4px 4px 1px #0000003d;
}

.google-img {
    width: 12%;
}

.google-content {
    width: 88%;
}

.google-content p {
    color: rgba(0, 0, 0, 0.54);
    font-size: 20px;
    font-family: 'DINRegular';
    margin: 0;
}

.sign-email-text {
    color: #161C2D;
    font-size: 19px;
    font-family: 'DINRegular';
    margin: 0;
    margin-top: 30px;
    text-align: center;
}

.register-form-box {
    width: 700px;
    margin: 0 auto;
    border: 1px solid #E7E9ED;
    padding: 35px 25px;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0px 4px 4px 1px #0000003d;
    background-color: rgba(255, 255, 255, 1);
}

.register-form-box-update-profile {
    margin: 0 auto;
    /* border: 1px solid #E7E9ED; */
    border-radius: 10px;
    /* margin-top: 30px; */
    /* box-shadow: 0px 4px 4px 1px #0000003d; */
}

/* White labels for UpdateUserProfile modal */
.register-form-box-update-profile label,
.register-form-box-update-profile .form-label {
    color: #ffffff;
}

/* Modal title styling - smaller, lighter font */
.modal-header .modal-title,
.edit-profile-modal .modal-title,
.media-picker-modal .modal-title {
    font-size: 20px !important;
    font-weight: normal !important;
    font-family: "DINBold", sans-serif !important;
    text-align: left !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    color: #ffffff !important;
}

.modal-header {
    color: #ffffff !important;
}

/* Visually hidden labels for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Placeholder styling for dark background */
.register-form-box-update-profile input::placeholder,
.register-form-box-update-profile select::placeholder,
.register-form-box-update-profile textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Style for select first option as placeholder */
.register-form-box-update-profile select option:first-child {
    color: rgba(150, 150, 150, 0.8);
}

.first-last {
    width: 100%;
    display: flex;
}

.first {
    width: 50%;
    padding: 0 10px;
}

.last {
    width: 50%;
    padding: 0 10px;
}

.first-last .form-label {
    color: #161C2D;
    font-size: 15px;
    font-family: 'DINBold';
}

.first-last .form-control {
    padding: 10px;
}

.first-last .form-select {
    padding: 10px;
}

.first-last .form-control:focus {
    box-shadow: none;
    border-color: #E7E9ED;
}

.first-last .form-select:focus {
    box-shadow: none;
    border-color: #E7E9ED;
}

.first-last .form-check-label {
    color: #161C2D;
    font-size: 15px;
    font-family: 'DINRegular';
}

.first-last button {
    width: 100%;
    color: white;
    font-size: 17px;
    font-family: 'DINBold';
    background-color: #9747FF;
    border: 0;
    padding: 15px;
    border-radius: 10px;
}

.alredy-account {
    color: #161C2D;
    font-size: 17px;
    font-family: 'DINRegular';
    margin: 0;
    text-align: center;
    margin-top: 45px;
}

.alredy-account a {
    color: #F5484D;
    text-decoration: none;
}

.user-type-sec {
    font-family: 'DINBold';
    font-size: 20px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;

}

.user-type-sec.user-selected {
    background-color: #F5484D;
}

.user-type-sec {
    background-color: #bcbcbc;
}

@media(max-width: 767px) {
    .register-main-conteiner {
        padding-top: 20px;
        margin-bottom: 20px;
        padding: 100px 10px;
    }

    .register-heading {
        font-size: 40px;
    }

    .register-sub-heading {
        font-size: 16px;
    }

    .sign-with-google-container {
        width: 100%;
        padding: 7px;
    }

    .sign-email-text {
        margin-top: 50px;
    }

    .register-form-box {
        width: 100%;
        padding: 20px;
    }

    .first-last {
        width: 100%;
        display: block;
    }

    .first {
        width: 100%;
        padding: 0;
    }

    .last {
        width: 100%;
        padding: 0;
    }
}

/* ================================================================
   EDIT PROFILE MODAL - Grid Layout
   Desktop: 3 columns (image | fields | fields)
   Mobile: Single column (image row + fields stack)
   ================================================================ */

/* Z-index fix: Ensure Edit Profile modal appears above mobile menu (999999) */
.edit-profile-modal.modal {
    z-index: 1000500;
}

/* Modal styling */
.edit-profile-modal .modal-content {
    background-color: rgb(33, 37, 41);
    border: none;
}

.edit-profile-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.edit-profile-modal .modal-body {
    padding: 20px;
}

/* Main container */
.edit-profile-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Grid Layout - Desktop */
.edit-profile-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: start;
}

/* Image Column */
.edit-profile-image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image-wrapper {
    width: 100%;
}

/* Fields Column */
.edit-profile-fields-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Fields Grid - 2 columns */
.fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Individual field item */
.field-item {
    display: flex;
    flex-direction: column;
}

/* Desktop - NEVER full width, fields stay in 2-column grid */
@media (min-width: 769px) {
    .field-item.full-width {
        grid-column: auto; /* Override full-width on desktop */
    }
}

/* Mobile only - allow full width */
@media (max-width: 768px) {
    .field-item.full-width {
        grid-column: 1 / -1;
    }
}

/* Form control styling for dark mode */
.edit-profile-container .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.edit-profile-container .form-control:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    outline: none;
    color: #ffffff;
}

.edit-profile-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.edit-profile-container .form-control:disabled {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

/* Select dropdown styling */
.edit-profile-container select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 35px;
}

.edit-profile-container select.form-control option {
    background-color: rgb(33, 37, 41);
    color: #ffffff;
}

/* Date input styling with white calendar icon */
.edit-profile-container input[type="date"] {
    color-scheme: dark;
}

.edit-profile-container input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.edit-profile-container input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Firefox */
.edit-profile-container input[type="date"]::-moz-calendar-picker-indicator {
    filter: invert(1);
}

/* Gym fields section */
.gym-fields-section {
    margin-top: 10px;
}

/* Section divider */
.section-divider {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

/* Submit button */
.edit-profile-submit {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-submit-profile {
    background-color: #9747FF;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'DINBold', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    max-width: 100%;
    box-sizing: border-box;
}

.btn-submit-profile:hover {
    background-color: #8030e6;
    transform: translateY(-1px);
}

.btn-submit-profile:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error messages */
.edit-profile-container .text-danger {
    color: #ff6b6b !important;
    font-size: 12px;
    margin-top: 5px;
}

/* ================================================================
   MOBILE RESPONSIVE - Edit Profile
   ================================================================ */
@media (max-width: 768px) {
    .edit-profile-modal .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100vh;
    }

    .edit-profile-modal .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    .edit-profile-modal .modal-body {
        overflow-y: auto;
        padding: 15px;
        padding-bottom: 100px;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .edit-profile-modal .modal-body::-webkit-scrollbar {
        display: none;
    }

    /* Grid becomes single column on mobile */
    .edit-profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Image section first on mobile */
    .edit-profile-image-column {
        order: -1;
    }

    /* Profile image wrapper on mobile - horizontal layout handled by MediaPickerButton CSS */
    .profile-image-wrapper {
        width: 100%;
    }

    /* Fields become single column */
    .fields-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .field-item.full-width {
        grid-column: 1;
    }

    /* Form controls slightly smaller on mobile */
    .edit-profile-container .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Section divider */
    .section-divider {
        font-size: 12px;
        padding: 12px 0 8px;
    }

    /* Submit button - constrained to form panel on mobile */
    .edit-profile-submit {
        position: relative; /* Changed from fixed */
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-top: 15px;
        box-sizing: border-box;
    }

    .btn-submit-profile {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        box-sizing: border-box;
    }

    /* Hide submit button when viewing media picker */
    .edit-profile-slide-container.view-mediaPicker .edit-profile-submit {
        display: none;
    }
}

/* ================================================================
   SLIDE ANIMATION FOR EDIT PROFILE - Full Replacement Pattern
   ================================================================ */

/* Override modal body padding for slide container */
.edit-profile-modal .edit-profile-modal-body {
    overflow: hidden;
    padding: 0 !important;
}

/* Slide container - holds both panels side by side */
.edit-profile-slide-container {
    display: flex;
    width: 200%;
    transition: transform 0.3s ease-in-out;
}

.edit-profile-slide-container.view-form {
    transform: translateX(0);
}

.edit-profile-slide-container.view-mediaPicker {
    transform: translateX(-50%);
}

/* Each slide panel takes 50% of container (100% of visible area) */
.edit-profile-slide-panel {
    width: 50%;
    flex-shrink: 0;
    padding: 20px;
    min-height: 400px;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent children from overflowing horizontally */
}

/* Form panel needs scroll for tall content */
.edit-profile-slide-panel.form-panel {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.edit-profile-slide-panel.form-panel::-webkit-scrollbar {
    display: none;
}

/* Picker panel */
.edit-profile-slide-panel.picker-panel {
    display: flex;
    flex-direction: column;
}

/* ================================================================
   MediaPicker panel in 2-panel edit profile modal
   Note: Base .media-picker-inline-footer styles are in MediaPicker.css
   ================================================================ */
.edit-profile-slide-panel.picker-panel {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.edit-profile-slide-panel.picker-panel .media-picker-content-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
}

/* ================================================================
   BACK BUTTON IN MODAL HEADER
   ================================================================ */

.modal-header-with-back {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.modal-back-button {
    background: none;
    border: none;
    padding: 8px;
    margin: -8px;
    margin-right: 4px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-back-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-back-button svg {
    width: 24px;
    height: 24px;
}

/* ================================================================
   MEDIA PICKER CONTENT PANEL STYLES (inline, no modal)
   ================================================================ */

.media-picker-content-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

/* ===== MEDIA PICKER HEADER (Tabs + Filters) ===== */
.media-picker-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    padding: 16px 16px 0px 16px;
}

/* Tabs - Left Side */
.media-picker-inline-tabs {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.media-picker-inline-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.media-picker-inline-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.media-picker-inline-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.media-picker-inline-tab .tab-icon {
    width: 16px;
    height: 16px;
}

/* Filters - Right Side */
.media-picker-filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.media-picker-folder-select {
    position: relative;
    display: flex;
    align-items: center;
}

.media-picker-folder-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px;
    padding: 6px 32px 6px 12px; /* Extra padding-right for chevron */
    font-size: 13px;
    min-width: 120px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.media-picker-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    min-width: 120px;
}

.media-picker-folder-select select:focus,
.media-picker-search input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
}

.media-picker-folder-select select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.7)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.media-picker-folder-select select option {
    background: #1a1a2e;
    color: #fff;
}

.media-picker-search input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Content area */
.media-picker-inline-content {
    flex: 1;
    overflow-y: auto;
    min-height: 300px;
    padding:0px 16px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.media-picker-inline-content::-webkit-scrollbar {
    display: none;
}

/* Footer with selection info and actions */
.media-picker-inline-footer {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    gap: 15px;
}

.media-picker-inline-actions {
    display: flex;
    gap: 10px;
}

.media-picker-inline-actions .btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 700; /* Bold font */
    font-family: 'DINBold', sans-serif;
}

/* Cancel button - never disabled styling */
.media-picker-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.media-picker-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cancel should NEVER look disabled */
.media-picker-btn-cancel:disabled {
    opacity: 1 !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Select button */
.media-picker-btn-select {
    background: #B9FF66;
    border: none;
    color: #000000;
}

.media-picker-btn-select:hover:not(:disabled) {
    background: #a8ed55;
}

.media-picker-btn-select:disabled {
    background: rgba(185, 255, 102, 0.4);
    cursor: not-allowed;
    opacity: 0.6;
}

/* ================================================================
   MOBILE RESPONSIVE - Slide Animation
   ================================================================ */

@media (max-width: 768px) {
    .edit-profile-slide-panel {
        padding: 15px;
        padding-bottom: 30px; /* Space for inline submit button */
        overflow-x: hidden;
    }

    .edit-profile-slide-panel.form-panel {
        max-height: calc(100vh - 60px);
        overflow-x: hidden;
    }

    /* ===== MOBILE LAYOUT ===== */
    .media-picker-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    /* Tabs - full width on mobile */
    .media-picker-inline-tabs {
        width: 100%;
        justify-content: flex-start;
        gap: 5px;
        padding-bottom: 15px;
    }

    .media-picker-inline-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .media-picker-inline-tab .tab-icon {
        width: 14px;
        height: 14px;
    }

    /* Filters - 50/50 split on mobile */
    .media-picker-filters {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }

    .media-picker-folder-select,
    .media-picker-search {
        flex: 1;
        min-width: 0; /* Allow shrinking */
    }

    .media-picker-folder-select select,
    .media-picker-search input {
        width: 100%;
        min-width: 0;
    }

    .media-picker-inline-footer {
        flex-direction: column;
        gap: 10px;
    }

    .media-picker-inline-actions {
        width: 100%;
    }

    .media-picker-inline-actions .btn {
        flex: 1;
    }
}