/* Base Profile Card Styles */
.profile-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 16px;
    background: var(--Neutral-50, #FFF);
    box-shadow: 0px 4px 12px 0px rgba(246, 193, 116, 0.15);
    max-width: 100%;
    margin-bottom: 20px;
}

.profile-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--Main, #F6C174);
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.profile-name {
    color: var(--Neutral-800, #0D0D0D);
    text-align: right;
    font-size: 24.459px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    padding-bottom: 8px;
    word-break: break-word;
}

.profile-badge {
    text-align: right;
    color: #f1c40f;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    background: linear-gradient(155deg, #D3B15E 0%, #E3B321 30%, #C69D40 79%, #AE8740 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Navigation Styles */
.profile-nav {
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.profile-nav .nav-tabs {
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.profile-nav .nav-link {
    color: var(--Neutral-800, #0D0D0D);
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
}

.profile-nav .nav-item .active {
    background-color: transparent !important;
    border: none !important;
    border-bottom: 3px solid var(--Main, #F6C174) !important;
    border-radius: 0 !important;
    color: var(--Main, #F6C174) !important;
}

.profile-nav .nav-link:hover {
    color: var(--Main, #F6C174) !important;
}

.nav-item p {
    color: var(--Neutral-800, #0D0D0D);
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

/* Tab Content */
.tab-content {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
    background: var(--Neutral-50, #FFF);
    box-shadow: 0px 0px 8px 0px rgba(246, 193, 116, 0.10);
}

.tab-content h5 {
    color: #000;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 20px;
}

.tab-content p {
    color: #000;
    text-align: right;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 8px;
}

/* Button Styles */
.tab-content .custom-button-upload-image {
    display: flex;
    height: 44px;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: var(--Main, #F6C174);
    color: var(--Neutral-50, #FFF);
    text-align: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    border: none;
    width: auto;
    min-width: 120px;
    transition: all 0.3s ease;
}

.tab-content .custom-button-upload-image:hover {
    background: #f5b85a;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(246, 193, 116, 0.3);
}

.tab-content .custom-button-upload-image2 {
    display: flex;
    height: 44px;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 2px solid var(--Erorr-500, #F04438);
    color: var(--Erorr-500, #F04438);
    text-align: center;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background-color: transparent;
    width: auto;
    min-width: 100px;
    transition: all 0.3s ease;
}

/* Input Group Styles */
.input-group {
    height: 52px;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid #e0e0e0;
    position: relative;
    margin-bottom: 20px;
    margin-top: 10px;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--Main, #F6C174);
    box-shadow: 0 0 0 3px rgba(246, 193, 116, 0.1);
}

input {
    width: 100%;
    padding-right: 40px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    background-color: transparent;
    outline: none;
}

.icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
}

.toggle-password {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password img {
    width: 20px;
    height: 20px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .profile-card {
        padding: 16px;
        gap: 12px;
    }
    
    .profile-image {
        width: 60px;
        height: 60px;
        border-width: 2px;
    }
    
    .profile-name {
        font-size: 20px;
        padding-bottom: 6px;
    }
    
    .profile-badge {
        font-size: 14px;
    }
    
    .profile-badge i {
        font-size: 12px;
    }
    
    .nav-item p {
        font-size: 14px;
    }
    
    .profile-nav .nav-link {
        padding: 10px 12px;
    }
    
    .tab-content {
        padding: 16px;
    }
    
    .tab-content h5 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .tab-content p {
        font-size: 14px;
    }
    
    .input-group {
        height: 48px;
        padding: 6px 12px;
        margin-bottom: 16px;
    }
    
    input {
        font-size: 14px;
        padding-right: 36px;
    }
    
    .tab-content .custom-button-upload-image,
    .tab-content .custom-button-upload-image2 {
        height: 40px;
        font-size: 14px;
        padding: 10px 16px;
        min-width: 100px;
        width: 100%;
        max-width: 160px;
    }
    
    .d-flex.flex-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Stack form fields vertically on mobile */
    .d-flex.flex-row.justify-content-between {
        flex-direction: column;
        gap: 0;
    }
    
    .d-flex.flex-row.justify-content-between > div {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 12px;
    }
    
    .profile-image {
        width: 50px;
        height: 50px;
    }
    
    .profile-name {
        font-size: 18px;
    }
    
    .profile-badge {
        font-size: 13px;
    }
    
    .nav-item p {
        font-size: 13px;
    }
    
    .profile-nav .nav-link {
        padding: 8px 10px;
    }
    
    .tab-content {
        padding: 12px;
    }
    
    .tab-content h5 {
        font-size: 16px;
    }
    
    .input-group {
        height: 46px;
    }
    
    .tab-content .custom-button-upload-image,
    .tab-content .custom-button-upload-image2 {
        height: 38px;
        font-size: 13px;
    }
}

/* Additional utility classes for mobile */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Settings Tab Specific Styles */
#settings {
    padding: 24px;
}

#settings h5 {
    color: #000;
    font-size: 22px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 24px;
}

/* Settings Section Container */
.mb-457 {
    margin-bottom: 24px !important;
    padding: 20px;
    border-radius: 12px;
    background: #FAFAFA;
    border: 1px solid #F0F0F0;
}

/* Settings Labels */
#settings label {
    color: #000;
    text-align: right;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    display: block;
    margin-bottom: 16px;
}

/* Theme Radio Buttons */
.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #FFF;
    border: 1.5px solid #E0E0E0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check:hover {
    border-color: var(--Main, #F6C174);
    background: #FFFBF5;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #C4CBD4;
    cursor: pointer;
    margin: 0;
}

.form-check-input:checked {
    background-color: var(--Main, #F6C174);
    border-color: var(--Main, #F6C174);
}

.form-check-label {
    color: var(--Neutral-800, #0D0D0D);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    margin: 0;
    flex: 1;
    text-align: right;
}

.form-check-inline {
    display: flex;
    margin-right: 0;
    margin-left: 0;
}

/* Font Size Select */
#settings select.form-control {
    width: 100%;
    height: 52px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1.5px solid #E0E0E0;
    background: #FFF;
    color: var(--Neutral-800, #0D0D0D);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230D0D0D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
    text-align: right;
    direction: rtl;
}

#settings select.form-control:focus {
    outline: none;
    border-color: var(--Main, #F6C174);
    box-shadow: 0 0 0 3px rgba(246, 193, 116, 0.1);
}

/* Notification Section */
.mt-2.ms-3 {
    margin-top: 12px !important;
    margin-right: 20px !important;
    margin-left: 0 !important;
    padding-right: 20px;
    border-right: 3px solid var(--Main, #F6C174);
}

/* Nested checkboxes */
.mt-2.ms-3 .form-check {
    background: #FFF;
    margin-bottom: 8px;
}

/* Save Settings Button */
#settings .btn-primary {
    display: flex;
    height: 52px;
    padding: 14px 32px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: var(--Main, #F6C174);
    border: none;
    color: var(--Neutral-50, #FFF);
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    width: 100%;
    max-width: 300px;
    margin-top: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#settings .btn-primary:hover {
    background: #f5b85a;
    transform: translateY(-2px);
    box-shadow: 0px 6px 16px rgba(246, 193, 116, 0.4);
}

#settings .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0px 2px 8px rgba(246, 193, 116, 0.3);
}

/* Mobile Responsive for Settings */
@media (max-width: 768px) {
    #settings {
        padding: 16px;
    }
    
    #settings h5 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .mb-457 {
        padding: 16px;
        margin-bottom: 16px !important;
    }
    
    #settings label {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .form-check {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    
    .form-check-input {
        width: 18px;
        height: 18px;
    }
    
    .form-check-label {
        font-size: 14px;
    }
    
    #settings select.form-control {
        height: 48px;
        font-size: 14px;
        padding: 10px 40px 10px 12px;
        background-position: left 12px center;
    }
    
    .mt-2.ms-3 {
        margin-right: 12px !important;
        padding-right: 12px;
        border-right-width: 2px;
    }
    
    #settings .btn-primary {
        height: 48px;
        font-size: 16px;
        padding: 12px 24px;
        max-width: 100%;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    #settings {
        padding: 12px;
    }
    
    #settings h5 {
        font-size: 16px;
    }
    
    .mb-457 {
        padding: 12px;
    }
    
    #settings label {
        font-size: 14px;
    }
    
    .form-check {
        padding: 8px 10px;
    }
    
    .form-check-label {
        font-size: 13px;
    }
    
    #settings select.form-control {
        height: 46px;
        font-size: 13px;
    }
    
    #settings .btn-primary {
        height: 44px;
        font-size: 15px;
        padding: 10px 20px;
    }
}

/* Additional styling for better visual hierarchy */
#settings .mb-457:first-of-type {
    border-top: 3px solid var(--Main, #F6C174);
}

/* Checkbox custom styling */
.form-check-input[type="checkbox"] {
    border-radius: 4px;
}

.form-check-input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='11' viewBox='0 0 14 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5.5L5 9.5L13 1.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* Radio button custom styling */
.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='4' cy='4' r='4' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}