/* Account Profile Layout - Tab Navigation */

.account-profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
}

.profile-back-link {
    margin-bottom: 10px;
}

    .profile-back-link a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: #5f6368;
        text-decoration: none;
    }

    .profile-back-link a:hover {
        color: #0d6efd;
        text-decoration: none;
    }

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 0 20px 0;
    border-bottom: none;
    margin-bottom: 0;
    position: relative;
}

.profile-avatar {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2f77a9 0%, #0d6efd 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(47, 119, 169, 0.3);
}

    .profile-avatar svg {
        width: 40px;
        height: 40px;
        color: #ffffff;
    }

.profile-info {
    flex: 1;
}

.profile-email {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.profile-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Tab Navigation */
.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #e8eaed;
    background-color: transparent;
    margin: 0;
    padding: 20px 0 0 0;
}

.profile-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: #5f6368;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

    .profile-tab:hover {
        color: #0d6efd;
        background-color: #e7f3ff;
        text-decoration: none;
        transform: translateY(-2px);
    }

    .profile-tab::before {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #2f77a9 0%, #0d6efd 100%);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .profile-tab.active {
        color: #0d6efd;
        background-color: #e7f3ff;
        font-weight: 600;
    }

    .profile-tab.active::before {
        transform: scaleX(1);
    }

    .profile-tab svg {
        flex-shrink: 0;
    }

/* Tab Content */
.profile-tab-content {
    padding: 30px 0;
    min-height: 400px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    /* Content adjustments for embedded pages */
    .profile-tab-content h1,
    .profile-tab-content h2 {
        font-size: 1.5rem;
        font-weight: 400;
        margin-top: 0;
    }

    .profile-tab-content .m-t-10vh,
    .profile-tab-content .m-t-5vh {
        margin-top: 0 !important;
    }

/* Responsive */
@media (max-width: 768px) {
    .account-profile-container {
        padding: 15px;
    }

    .profile-header {
        gap: 15px;
        padding: 20px 0 15px 0;
    }

    .profile-avatar {
        width: 56px;
        height: 56px;
    }

        .profile-avatar svg {
            width: 32px;
            height: 32px;
        }

    .profile-email {
        font-size: 20px;
    }

    .profile-tabs {
        gap: 4px;
        padding: 15px 0 0 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .profile-tabs::-webkit-scrollbar {
            display: none;
        }

    .profile-tab {
        padding: 10px 16px;
        font-size: 13px;
        min-width: fit-content;
    }

        .profile-tab svg {
            width: 18px;
            height: 18px;
        }

    .profile-tab-content {
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .profile-email {
        font-size: 18px;
    }

    .profile-tabs {
        justify-content: flex-start;
        gap: 6px;
    }

    .profile-tab {
        flex: 0 0 auto;
        padding: 10px 14px;
    }

        .profile-tab span {
            font-size: 12px;
        }
}

/* Override existing page styles when inside profile */
.account-profile-container .referral-container {
    max-width: 100%;
    padding: 0;
}

    .account-profile-container .referral-container .m-t-30 {
        margin-top: 0;
    }

.account-profile-container #view-process-update-information {
    max-width: 100%;
}

.account-profile-container .row > .col-md-12 > h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* Professional Account Information Card */
.account-info-section {
    max-width: 100%;
}

.section-header {
    margin-bottom: 20px;
}

    .section-header h3 {
        margin: 0 0 8px 0;
        font-size: 24px;
        font-weight: 500;
        color: #202124;
    }

    .section-header p {
        margin: 0;
        font-size: 15px;
        color: #6c757d;
    }

/* Professional Form Groups */
.form-group-professional {
    margin-bottom: 30px;
}

    .form-group-professional:last-child {
        margin-bottom: 0;
    }

.form-label-professional {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
}

.form-control-static {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 6px;
}

.email-display {
    font-size: 15px;
    color: #202124;
    font-weight: 500;
}

.ml-2 {
    margin-left: 8px;
}
/*
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    background-color: #28a745;
    color: white;
}*/

.form-text {
    display: block;
    margin-top: 4px;
}

/* Upload Area Styling */
.letterhead-upload-section {
    margin-top: 8px;
}

.upload-area {
    position: relative;
    border: 2px dashed #d0d0d0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #fafbfc;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .upload-area:hover {
        border-color: #007bff;
        background-color: #f0f8ff;
    }

    .upload-area input[type="file"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
    }

.upload-icon {
    color: #6c757d;
    margin-bottom: 12px;
}

    .upload-icon svg {
        width: 32px;
        height: 32px;
    }

.upload-text {
    color: #6c757d;
}

.upload-title {
    font-size: 15px;
    font-weight: 500;
    color: #202124;
    margin: 0 0 4px 0;
}

.upload-subtitle {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}

.logo-preview-container {
    padding: 16px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
}

.logo-preview-label {
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 10px;
}

.logo-preview-image {
    max-width: 300px;
    max-height: 75px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    padding: 8px;
}

.help-text {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

    .help-text svg {
        flex-shrink: 0;
        margin-top: 2px;
    }

/* Upgrade Notice */
.upgrade-notice {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 8px;
}

.upgrade-icon {
    color: #6c757d;
    flex-shrink: 0;
}

    .upgrade-icon svg {
        width: 24px;
        height: 24px;
    }

.upgrade-content {
    flex: 1;
}

    .upgrade-content h4 {
        margin: 0 0 6px 0;
        font-size: 16px;
        font-weight: 600;
        color: #202124;
    }

    .upgrade-content p {
        margin: 0 0 12px 0;
        font-size: 14px;
        color: #6c757d;
    }

/* Button Enhancements */
.btn {
    /*display: inline-flex;
    align-items: center;
    gap: 6px;*/
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .btn:active {
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .btn svg {
        flex-shrink: 0;
    }

/*.btn-primary {
    background: linear-gradient(135deg, #2f77a9 0%, #0d6efd 100%);
    border: none;
    color: white;
}*/

    .btn-primary:hover {
        background: linear-gradient(135deg, #0d6efd 0%, #0a53be 100%);
    }

.btn-default {
    background-color: white;
    border: 1px solid #dadce0;
    color: #3c4043;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

    .btn-default:hover {
        background-color: #f8f9fa;
        border-color: #dadce0;
    }

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

/* Responsive for Account Info Section */
@media (max-width: 768px) {
    .section-header h3 {
        font-size: 20px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

        .form-actions .btn {
            width: 100%;
            justify-content: center;
        }

    .form-control-static {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ml-2 {
        margin-left: 0;
    }

    .upload-area {
        padding: 20px;
    }

    .logo-preview-image {
        max-width: 100%;
    }

    .upgrade-notice {
        flex-direction: column;
        text-align: center;
    }
}

/*fix icon thong bao*/
.badge-notification.over9 {
    height: 5px;
}