:root {
    --primary-color: #5046e5;
    --primary-light: #b2b1bdff;
    --secondary-color: #6c757d;
    --light-bg: #f8f9fa;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-reveal {
    display: none;
}


.custom-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.switch-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9rem;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.custom-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.custom-switch input:checked+.slider {
    background-color: #5046e5;
}

.custom-switch input:checked+.slider:before {
    transform: translateX(24px);
}

.custom-switch.switch-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.custom-switch input[disabled]+.slider {
    background-color: #ccc;
    cursor: not-allowed;
}

.cb {
    background-color: #f9f9f9;
}



.company-info-card {
    background: whitesmoke;
    border-radius: var(--cui-border-radius);
    padding: 25px;


}

.dark-mode .company-info-card {
    background: #29303f;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.5rem;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.form-section-title {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.info-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stats-grid2 {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
}

.stat-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--box-shadow);
    border: var(--card-border);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.dark-mode .stat-value {
    color: #ffffff;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.avatar1-img {
    border: 3px solid var(--primary-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    padding: 4px;
    background: white;
}

.avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.profile-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.5rem;
}

.profile-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.profile-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 5px;
}

.field-group {
    margin-bottom: 20px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}



.dark-mode .form-section {
    background: #2a2c31;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-section-title i {
    margin-right: 10px;
    font-size: 1.3rem;
}


.avatar-container {
    position: relative;
    width: 200px;
    margin: 0 auto 20px;
    max-width: 100%;
}

.avatar-preview {
    width: 222px;
    height: 222px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: var(--box-shadow);
    background: white;
    padding: 5px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.avatar-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.avatar-overlay:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .avatar-container {
        width: 120px;
    }

    .avatar-preview {
        width: 130px;
        height: 130px;
    }

    .avatar-overlay {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 400px) {
    .avatar-container {
        width: 80px;
    }

    .avatar-preview {
        width: 90px;
        height: 90px;
    }

    .avatar-overlay {
        width: 20px;
        height: 20px;
    }
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.dark-mode .stat-item {
    background: #ffffff1a;
}

.company-img {
    background: white;
    border-radius: 15px;
    width: 100%;
    height: 100% !important;
    object-fit: contain;
}


.phone-input-group {
    display: flex;
    width: 100%;
}

.country-code-select {
    flex: 0 0 35%;
    border-radius: 0.375rem 0 0 0.375rem !important;
    border-right: none !important;
}

.phone-number-input {

    border-radius: 0 0.375rem 0.375rem 0;
    border-left-color: #dbdfe698;
}






@media (max-width: 766px) {
    .imgCompany {
        margin-top: 1.7rem !important;
    }
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: none !important;
}



.password-toggle {
    position: absolute;
    right: 15px;
    top: 42px;
    cursor: pointer;
    color: var(--secondary-color);
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-strength {
    height: 5px;
    border-radius: 5px;
    margin-top: 8px;
    background: #e9ecef;
    overflow: hidden;
    transition: var(--transition);
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: var(--transition);
}




.password-criteria {
    position: relative;
    margin-top: 15px;
    left: 30px !important;

}

.criterion {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
}




.password-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.last-changed {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.dark-mode .last-changed {
    border-top: 1px solid #444;
}

.password-visibility-toggle {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    position: absolute;
    right: 4px;
    top: 6px;
    z-index: 100;
}

.password-visibility-toggle:hover {
    color: var(--primary-color);
}


@media (max-width: 400px) {
    input[type="password"] {
        font-size: 0.7rem;
    }
}



.criterion i {
    margin-right: 8px;
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}




.form-control.is-invalid {

    background-image: none
}

.form-control.is-valid {

    background-image: none
}

.company-img-container {
    position: relative;
    display: inline-block;
}

.company-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(172, 165, 165, 0.45);
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    z-index: 2;
    border-radius: 0.375rem;
}

.company-img-container:hover .company-img-overlay {
    opacity: 1;
}

.company-img-overlay i {
    font-size: 2.5rem;
    color: #fff;
}

.privacy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.privacy-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.privacy-desc {
    font-size: 0.875rem;
    color: #6c757d;
}

#messageError {
    position: relative;
    left: 33px;
    top: 5px
}

[data-coreui-theme=dark] .cb {
    background-color: #404249 !important;

}

[data-coreui-theme=dark] .stat-label {
    color: #c9c9c9;
}

[data-coreui-theme=dark] .phone-number-input:focus {
    border: 1px solid #a8a3f2 !important;

}

[data-coreui-theme=dark] .phone-number-input {
    border-left-color: #6c757d36 !important;


}

[data-coreui-theme=dark] .phone-number-input.is-valid:focus {
    border: 1px solid #75b798 !important;
    box-shadow: 0 0 0 0.25rem rgba(92, 193, 139, 0.25);

}

[data-coreui-theme=dark] .darkMode2fa {
    color: white !important;

}





.darkMode2fa {

    text-align: left;
}

.app-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #212529;
    transition: all 0.3s;
    font-weight: 500;
}

.app-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #3a0ca3;
    border-color: #3a0ca3;
}

.app-badge i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.android-badge:hover {
    background-color: #f5f9ff;
}

.ios-badge:hover {
    background-color: #fff5f5;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    background-image: none !important;
}

.was-validated .form-control:valid,
.form-control.is-valid {
    background-image: none !important;
}

.fw-1 {
    font-weight: 100 !important;
}

.valuemodules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}