/* 
 * dashboard.css
 * JustinAI 仪表盘布局样式
 */

:root {
    --sidebar-width-expanded: 220px;
    --sidebar-width-collapsed: 92px;
    --sidebar-width: var(--sidebar-width-expanded);
    --header-height: 80px;
    --sidebar-background: #764BA2;
    --main-background: #F8F9FC;
    --sidebar-border-color: #653A8B;
    --sidebar-text-color: #D1C4E9;
    --sidebar-text-color-strong: #FFFFFF;
    --sidebar-active-background: rgba(255, 255, 255, 0.1);
    --sidebar-active-text-color: var(--sidebar-text-color-strong); /* 修正激活状态文字颜色 */
    --sidebar-hover-background: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--main-background);
}

.dashboard-layout {
    display: flex;
    transition: margin-left 0.3s ease;
}

/* --- 侧边栏 --- */
.sidebar {
    width: var(--sidebar-width-expanded);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--sidebar-background);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: width 0.3s ease;
    z-index: 100000;
}

.sidebar-header {
    display: flex;
    justify-content: flex-start; /* 调整为 flex-start 以实现顶部对齐 */
    align-items: flex-start; /* 实现向左对齐 */
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
    min-height: 40px;
    border-bottom: 1px solid var(--sidebar-border-color);
    flex-direction: column;
    gap: 20px;
}

.sidebar-header .brand-link {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    overflow: hidden;
}

.sidebar-header .brand-icon {
    height: 44.5px;
    width: 44.5px;
    flex-shrink: 0;
    background-color: #ffffffe3;
    border-radius: 20%;
    box-sizing: border-box;
}

.sidebar-header .brand-logo {
    height: 18px;
    flex-shrink: 0;
    transition: opacity 0.2s ease, width 0.3s ease;
    margin-left: 10px;
}

.sidebar-header .brand-text {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.sidebar-toggle {
    background-color: #0000003b;
    border: 1px solid var(--sidebar-border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sidebar-toggle:hover {
    border-color: var(--sidebar-text-color-strong);
    background-color: var(--sidebar-hover-background);
}
.sidebar-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--sidebar-text-color);
    transition: transform 0.3s ease;
}

/* 默认状态（展开时）显示左箭头，折叠时旋转180度显示右箭头 */
.dashboard-layout.collapsed .sidebar-toggle svg {
    transform: rotate(180deg);
}


.sidebar-user p,
.sidebar-nav .nav-item span {
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* --- 收起状态 --- */
.dashboard-layout.collapsed .sidebar {
    width: var(--sidebar-width-collapsed);
}

.dashboard-layout.collapsed .brand-logo,
.dashboard-layout.collapsed .sidebar-user p,
.dashboard-layout.collapsed .sidebar-user .user-stats,
.dashboard-layout.collapsed .nav-item span,
.dashboard-layout.collapsed .support-box {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

.dashboard-layout.collapsed .nav-item {
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
}

.dashboard-layout.collapsed .nav-icon {
    margin-right: 0;
}

.dashboard-layout.collapsed .sidebar-footer {
    padding: 0;
}

.dashboard-layout.collapsed .sidebar {
    padding: 1.5rem 0.5rem; /* 折叠时减少左右padding */
}

.dashboard-layout.collapsed .sidebar-header {
    align-items: center; /* 折叠时居中对齐 */
}

.dashboard-layout.collapsed .sidebar-header .brand-logo {
    margin-left: 0; /* 折叠时移除左边距，实现居中对齐 */
}

.dashboard-layout.collapsed .support-box {
    display: none; /* 折叠时隐藏完整的 support-box */
}

.dashboard-layout.collapsed .support-icon {
    display: flex; /* 折叠时显示咨询图标 */
    justify-content: center;
    align-items: center;
    color: var(--sidebar-text-color);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dashboard-layout.collapsed .support-icon:hover {
    color: var(--sidebar-text-color-strong);
    background-color: var(--sidebar-active-background);
}

.dashboard-layout.collapsed .support-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 14px 5px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--sidebar-text-color);
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-nav .nav-item:hover {
    color: var(--sidebar-text-color-strong);
    /* 移除背景色变化，让效果更简洁 */
}

.sidebar-nav .nav-item.active {
    background-color: var(--sidebar-active-background);
    color: var(--sidebar-active-text-color);
    font-weight: 600;
    border-radius: 10px;
    /* 移除原来的负边距和右缩进 */
    margin: 0;
    padding: 14px 5px;
}

.sidebar-nav .nav-item:hover .nav-icon,
.sidebar-nav .nav-item.active .nav-icon {
    stroke: var(--sidebar-text-color-strong);
}

.sidebar-nav .nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-right: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.2s ease;
}

.sidebar-footer {
    margin-top: auto;
    text-align: center;
}

.support-icon {
    display: none; /* 默认隐藏咨询图标 */
}

.support-box {
    background: var(--sidebar-active-background);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.support-box h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sidebar-text-color-strong);
}

.support-box p {
    margin: 0 0 1.5rem 0;
    font-size: 0.875rem;
    color: var(--sidebar-text-color);
}

.support-box .btn-primary {
    width: 100%;
}


/* --- 主内容区 --- */
.main-content {
    flex-grow: 1;
    background-color: var(--main-background);
    padding: 0 2rem 2rem;
    margin-left: var(--sidebar-width-expanded);
    transition: margin-left 0.3s ease;
    height: 100vh;
    overflow-y: auto;
}

.dashboard-layout.collapsed .main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 23px;
}

.search-bar {
    position: relative;
    width: 480px;
    max-width: 450px;
}

.search-bar .search-icon {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: var(--text-tertiary);
    stroke-width: 2.5;
}

.search-bar input {
    width: 100%;
    padding: 12px 50px 12px 50px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: #fff; /* 修正搜索框背景色 */
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon-btn {
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    border-color: var(--primary-blue);
    background-color: #F0F5FF;
}

.header-icon-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 2;
}

.content-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* 大课程卡片 */
.course-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.course-card-large {
    background-color: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.course-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.card-content {
    padding: 1.5rem;
}

.instructor-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.instructor-name {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.instructor-handle {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.card-description {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 小课程卡片 */
.course-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 1.5rem;
}

.course-card-small {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.course-card-small:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.06);
}

.card-image-wrapper-small {
    position: relative;
    height: 160px;
}

.card-image-wrapper-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #e53e3e;
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content-small {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-content-small .instructor-avatar.small {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.card-content-small span {
    font-weight: 600;
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    .main-content {
        width: calc(100% - 240px);
        margin-left: 240px;
        padding: 1.5rem 2rem;
    }

    .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 2px;
    }

    .course-grid-large {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* 在小屏幕上，强制收起状态 */
    .sidebar {
        --sidebar-width: var(--sidebar-width-collapsed);
    }
    .sidebar .brand-text,
    .sidebar .sidebar-user,
    .sidebar .nav-item span,
    .sidebar .support-box,
    .sidebar .sidebar-toggle { /* 同时也隐藏切换按钮 */
        display: none;
    }

    .sidebar .sidebar-header {
        justify-content: center;
    }

    .sidebar .brand-link {
        gap: 0;
    }

    .sidebar .nav-item {
        justify-content: center;
    }

    .sidebar .nav-icon {
        margin-right: 0;
    }

    .main-content {
        width: calc(100% - var(--sidebar-width-collapsed));
        margin-left: var(--sidebar-width-collapsed);
        padding: 1rem;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .main-header {
        margin-top: 2px;
    }

    /* 修复课程网格在手机端的显示 */
    .course-grid-large {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }

    .course-grid-small {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* 确保网格项目不会超出容器 */
        width: 100%;
        max-width: 100%;
    }

    /* 确保课程卡片在手机端有合适的大小和不会超出屏幕 */
    .course-card-large,
    .course-card-small {
        min-height: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* 调整卡片图片高度 */
    .card-image-wrapper {
        height: 180px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .card-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-image-wrapper-small {
        height: 140px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .card-image-wrapper-small img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 确保卡片内容不会溢出 */
    .card-content,
    .card-content-small {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 优化卡片标题和描述 */
    .card-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .card-description {
        font-size: 0.9rem;
        line-height: 1.5;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 优化搜索栏在手机端的显示 */
    .search-bar {
        width: 100%;
        max-width: 100%;
        margin-bottom: 1rem;
        box-sizing: border-box;
    }

    .search-bar input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 调整标题大小 */
    .main-header h1 {
        font-size: 1.75rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 优化标签页显示 */
    .tabs {
        gap: 0.5rem;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
    }

    .tab-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.1rem;
    }

    /* 优化内容区域的间距 */
    .content-section {
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-header {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
        width: 100%;
        max-width: 100%;
    }

    .section-header h2 {
        font-size: 1.25rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .view-all {
        font-size: 14px;
    }

    /* 确保讲师信息在移动端的显示 */
    .instructor-info {
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .instructor-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .instructor-name {
        font-size: 0.9rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .instructor-handle {
        font-size: 0.8rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 知识点检测页面移动端优化 */
    .test-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .test-info {
        width: 100%;
        gap: 1rem;
        max-width: 100%;
    }

    .test-icon-wrapper {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .test-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .test-title {
        font-size: 1rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .test-description {
        font-size: 0.875rem;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* 确保容器不会超出屏幕 */
    .test-list-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
} 

.sidebar-user {
    margin-top: auto;
    text-align: left;
    padding: 15px 5px;
    color: var(--sidebar-text-color-strong);
    font-size: 28px;
    font-weight: 500;
}

.sidebar-user span {
    font-weight: 500;
}

/* 用户统计信息样式 */
.sidebar-user .user-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.sidebar-user .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.sidebar-user .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-user .stat-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-user .stat-text {
    font-weight: 500;
}

/* 侧边栏收缩时的样式 */
.dashboard-layout.collapsed .sidebar-user .user-stats {
    display: none;
}

.dashboard-layout.collapsed .sidebar-user p {
    display: none;
}

/* 折叠状态下的用户信息容器 */
.sidebar-user .collapsed-user-info {
    display: none; /* 默认隐藏 */
    padding: 8px;
    align-items: center;
    gap: 8px;
}

.dashboard-layout.collapsed .sidebar-user .collapsed-user-info {
    display: flex; /* 折叠时显示 */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: auto;
    overflow: visible;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

/* 用户名首字母显示 */
.collapsed-user-info .user-initial {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

/* 折叠状态下的统计信息 */
.collapsed-user-info .collapsed-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.collapsed-user-info .collapsed-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.collapsed-user-info .collapsed-stat-icon {
    font-size: 14px;
}

.collapsed-user-info .collapsed-stat-number {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.main-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-link {
    padding: 0.75rem 0.25rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.tab-link:hover {
    color: var(--text-primary);
}

.tab-link.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
    font-weight: 600;
}

.course-category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: #E0E7FF;
    color: #4338CA;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.progress-bar-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-blue);
    border-radius: 0 2px 2px 0;
}

.card-instructor {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.test-list-container {
    background-color: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.test-list-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 18px 12px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.test-list-item:last-child {
    border-bottom: none;
}

.test-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.test-icon-wrapper {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #EEF2FF;
    color: #4F46E5;
}

.test-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.test-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.test-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: baseline;
    padding: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.view-all {
    font-size: 16px;
    font-weight: 600;
    color: #764ba2;
    text-decoration: none;
}

/* 我的课程页面特殊样式 */
.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.course-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-not-started {
    background: #f3f4f6;
    color: #6b7280;
}

.status-in-progress {
    background: #dbeafe;
    color: #2563eb;
}

.status-completed {
    background: #dcfce7;
    color: #16a34a;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-bottom: 12px;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.course-actions {
    margin-top: 16px;
}

.continue-learning {
    width: 100%;
    padding: 10px 20px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-learning:hover {
    background: #5b3fe7;
    transform: translateY(-1px);
}