* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #181d27;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    display: flex;
    flex: 1;
}

header {
    background-color: white;
    padding: 16px 100px 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo span {
    font-weight: 700;
    font-size: 20px;
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
}

.btn span {
    font-size: 14px;
    margin-right: 8px;
    font-weight: 400;
}

.btn-primary {
    background-color: #2e90fa;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #1a85f9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #2e90fa;
    color: #2e90fa;
}

.btn-outline:hover {
    background-color: rgba(46, 144, 250, 0.05);
}

.btn-progress {
    width: 100%;
}

.sidebar {
    width: 50%;
    /* min-width: 180px; */
    background-color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.user-profile {
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    gap: 16px;
    flex-direction: column;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 8px;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.user-role {
    font-size: 14px;
    color: #2E90FA;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #717680;
    transition: color 0.2s;
    padding: 8px 12px;
    border-radius: 12px;
}

.nav-item.active {
    background-color: #EFF8FF;
    font-weight: 500;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.main-content-center {
    display: flex;
}

.main-content {
    flex: 1;
    padding: 24px 100px 24px 100px;
    display: flex;
    gap: 32px;
}

.card {
    background-color: white;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-catalog {
    background-color: white;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.current-course {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 24px;
    padding: 24px;
}

.course-label {
    color: #717680;
    margin-bottom: 4px;
}

.course-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.course-image {
    border-radius: 8px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.progress-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
}

.goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 24px;
}

.goal-image {
    width: 100%;
}

.goal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.text-right {
    text-align: -webkit-right;
}

.catalog-content {
    display: flex;
    justify-content: space-between;
}

.catalog-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 80px;
}

.stat-label {
    color: #717680;
}

.stat-value {
    font-weight: 500;
}

.catalog-actions {
    display: flex;
    align-items: flex-end;
    justify-content: end;
    margin-top: 30px;
}

.catalog-content-actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.right-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    width: 32%;
    flex-shrink: 0;
}

.left-bar {
    flex: 1;
    gap: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.motivation {
    background-color: white;
    border-radius: 24px;
    padding: 16px;
    flex: 1;
}

.motivation-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.motivation-text {
    font-size: 14px;
}

footer {
    background-color: white;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #e6e6e6;
    font-size: 14px;
    gap: 32px;
}

.support span {
    margin: 0 8px;
}

.support-phone {
    font-weight: 500;
}

.ai-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.dashboard-wrapper {
    margin: 0 auto;
    padding: 24px 100px 24px 100px;
    display: flex;
    gap: 24px;
    /* grid-template-areas:
                "featured-course my-team-section"
                "activity-metrics my-team-section"
                "course-library assistant-panel"; */
}

.surface-elevated {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.surface-elevated:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.motivation-block {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.motivation-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.progress-tracker {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.progress-tracker:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.featured-course-block {
    display: flex;
    justify-content: space-between;
    /* height: -webkit-fill-available; */
}

.course-text-content h3 {
    color: #666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-text-content h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.action-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007AFF;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.action-button-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.action-button-secondary {
    background: transparent;
    color: #007AFF;
    border: 2px solid #007AFF;
}

.action-button-secondary:hover {
    background: #007AFF;
    color: white;
}

.ai-assistant-panel {
    grid-area: assistant-panel;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-assistant-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.ai-assistant-panel h3 {
    font-size: 24px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.ai-assistant-panel p {
    margin-bottom: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.activity-metrics-grid {
    grid-area: activity-metrics;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.progress-tracker,
.objectives-panel {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.objectives-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.objectives-panel img {
    width: 100%;
    height: 180px;
    margin-bottom: 32px;
    object-fit: cover;
}

.circular-progress-indicator {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(#007AFF 0deg 262.8deg, #e5e5e7 262.8deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
}

.circular-progress-indicator::before {
    content: '';
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.progress-percentage-text {
    font-size: 24px;
    font-weight: 700;
    color: #007AFF;
    position: relative;
    z-index: 1;
}

.widget-title-heading {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.course-library-widget {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.library-statistics-grid {
    display: flex;
    flex-direction: column;
}

.statistics-row-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    gap: 171px;
}

.statistics-row-item:last-child {
    border-bottom: none;
}

.team-management-section {
    grid-area: my-team-section;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: fit-content;
}

.team-visual-representation {
    width: 100%;
    object-fit: contain;
}

.team-member-counter {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.catalog-preview-image {
    width: 100%;
    height: fit-content;
    object-fit: contain;
}

.card-catalog-title {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ai-chat {
    /* grid-area: assistant-panel; */
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    height: -webkit-fill-available;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ai-trainer-header {
    padding: 20px 24px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    background: #FB6514;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

.ai-trainer-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
}

.chat-messages {
    flex: 1;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 375px;
    word-break: break-word;
    overflow-wrap: break-word;
    scrollbar-width: thin;
    /* scrollbar-color: #007AFF #f0f0f0; */
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: #007AFF;
    border-radius: 10px;
    border: 2px solid #f0f0f0;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background-color: #005fcc;
}

.message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.4;
    font-size: 14px;
}

.credits-tokens {
    color: #12B76A;
    font-weight: 500;
}

.message.user {
    background: #007AFF;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.message.assistant {
    background: #f5f5f7;
    color: #1d1d1f;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message-input {
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.message-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.message-input input:focus {
    border-color: #007AFF;
}

.message-input button {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: #EFF8FF;
    color: #2E90FA;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.credits {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #717680;
    transition: color 0.2s;
    padding: 8px 12px;
    border-radius: 12px;
    width: 100%;
}

.user-avatar {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.card-catalog-top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.avatar-rop {
    display: flex;
    flex-direction: column;

}

.message a {
    color: #007AFF;
    text-decoration: underline;
}

.message a:hover {
    color: #0056b3;
}

.mobile-alert-banner {
    display: none;
    background-color: #2e90fa;
    color: white;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.mobile-burger {
    background: none;
    border: none;
    display: none;
    cursor: pointer;
}

.mobile-sidebar-overlay {
    display: none;
}

.ai-float-button {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    border: none;
    z-index: 1000;
    cursor: pointer;
}

.ai-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    display: none;
}

@media (max-width: 768px) {

    .ai-float-button {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
    }

    .ai-chat {
        position: fixed;
        bottom: 95px;
        left: 16px;
        /* right: -23px; */
        max-height: 74%;
        background: white;
        z-index: 999;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
        display: none;
        flex-direction: column;
    }

    .ai-chat.open {
        position: fixed;
        width: 92%;
        display: flex !important;
    }

    header {
        padding: 16px 24px;
        position: sticky;
        top: 0;
        z-index: 99;
    }

    .mobile-burger {
        display: block;
    }

    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 9999;
        display: none;
        justify-content: flex-end;
    }

    .mobile-sidebar {
        background: #ffffff;
        height: fit-content;
        padding: 32px;
        border-radius: 16px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        top: 11%;
        left: 51%;
        position: absolute;
    }

    .catalog-preview-image img {
        width: -webkit-fill-available;
    }

    .mobile-nav {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-nav li a {
        font-size: 16px;
        font-weight: 500;
        text-decoration: none;
        color: #1d1d1f;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-nav li a.exit-link {
        color: #E63946;
    }
    .main-content {
        flex-direction: column;
        padding: 16px;
        width: -webkit-fill-available;
        gap: 16px;
        position: relative;
    }

    .mobile-alert-banner {
        display: block;
    }

    .left-bar, .right-sidebar {
        width: 100%;
        gap: 16px;
    }

    .activity-metrics-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .featured-course-block {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    .course-visual-preview img {
        position: relative;
        width: 100%;
        height: 100%;
        filter: brightness(0.6);
    }

    .course-visual-preview {
        width: 100%;
        /* height: 100%; */
    }

    .course-text-content {
        display: flex;
        text-align: start;
        flex-direction: column;
        width: 100%;
    }

    footer {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .footer-support-label {
        display: none;
    }

    .support-block {
        font-size: 12px;
    }

    .support {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .course-text-content h2{
        font-size: 20px;
        font-weight: 500;
        margin-top: 8px;
    }

    .mobile-alert-banner-paragraph {
        text-align: start;
        font-weight: 400;
        font-size: 14px
    }

    .mobile-alert-banner-attention {
        font-weight: 500;
        font-size: 16px
    }

    /* .course-text-content h3 {
        position: absolute;
        top: 10%;
        left: 14%;
        z-index: 1;
        background-color: rgba(255, 255, 255, 0.2);
        padding: 8px;
        border-radius: 20px;
        color: white;
    } */

    .course-text-content {
        position: relative;
    }

    .course-text-content h3 {
        position: absolute;
        top: -177%;
        left: 7%;
        z-index: 1;
        background-color: rgba(255, 255, 255, 0.2);
        padding: 8px;
        border-radius: 20px;
        color: white;
    }

    .surface-elevated {
        padding: 16px;
    }

    .progress-circle {
        width: 120px;
        height: 120px;
    }

    .progress-text {
        font-size: 20px;
    }

    .statistics-row-item {
        gap: 16px;
        justify-content: space-between;
    }

    .team-member-counter {
        top: 8px;
        right: 8px;
    }

    .progress-tracker {
        display: none;
    }

    .ai-chat {
        display: none;
    }

    .chat-messages {
        max-height: 360px;
    }

    .course-library-widget {
        flex-direction: column;
    }

    .message-input {
        padding: 12px 16px;
    }

    .btn {
        font-size: 13px;
        padding: 8px 12px;
        width: -webkit-fill-available;
    }
}

.daily-motivation-quote {
    font-style: italic;
    color: #555;
    padding: 15px 20px 15px 25px;
    border-left: 3px solid #2e90fa;
    margin: 10px 0;
    position: relative;
    background-color: #f9f9f9;
    line-height: 1.6;
}

.daily-motivation-quote::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 4em;
    color: rgba(0, 0, 0, 0.08);
    position: absolute;
    left: -5px;
    top: -10px;
    line-height: 1;
}

.daily-motivation-quote::after {
    content: '';
}


