body,
html {
    height: 100%;
    margin: 0;
    font-family: "arial", sans-serif;
    /*background: #e5e7ed;
    /* 设置背景图片固定 */
    background: #e5e7ed url('../img/聊天背景图.jpg') no-repeat center center fixed;
    background-size: cover;
    /*消除链接效果*/
    text-decoration: none;

}



.header {
    position: absolute;
    top: 20px;
    /* 根据需要调整 */
    right: 60px;
    /* 根据需要调整 */
    display: flex;
    align-items: center;
    gap: 20px;
    /* 添加间距 */
}

.login-button-container {
    position: relative;
    border-radius: 24px;
}

.login-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #190bdd;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 18px;
    /* 增加字体大小 */
    font-weight: bold;
    /* 加粗字体 */
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    /* 使边框包含在元素尺寸内 */
    position: relative;
    /* 使矩形框相对于按钮定位 */
}

.login-button-container :hover {
    border: 2px solid #190bdd;
    /* 鼠标悬停时的背景颜色 */
}

.translateSelectLanguage {
    width: 90px;
    height: 50px;
    background-color: #12b4e3;
    color: white;
    border-radius: 5px;
    border: none;
    margin: 20px 50px 50px 50px;
    -webkit-appearance: none;
    /* 移除默认的下拉箭头样式 */
    -moz-appearance: none;
    appearance: none;
    text-align: center;
}

.translateSelectLanguage:focus {
    outline: none;
}

.translateSelectLanguage option {
    background-color: #fff;
    color: #444;
    font-size: 20px;
}

.side-container {
    background-color: #fff;
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    box-shadow: 1px 0 5px rgba(203, 203, 203, 0.904);
    /* 添加阴影 */
    overflow-y: auto;
    /*     overflow-y: scroll;
    允许垂直滚动 */
    overflow-x: hidden;
    /* 增加 z-index 确保侧边栏在最顶层 */
    z-index: 1000;
}

.side-header {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
    margin-bottom: 50px;
}

.sidelogo1 {
    position: relative;
    width: 25px;
    height: 25px;
    left: -50px;
}

.side-header img {
    max-width: 80%;
    /* logo的最大宽度，不超过其父容器的宽度 */
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.side-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
    margin-top: 180px;
}


.side-content div,
.side-footer {
    display: block;
    color: #333;
    font-size: 0.9rem;
    text-decoration: none;
    height: 50px;
    text-align: center;
    line-height: 50px;
    width: 228px;
    cursor: pointer;
    margin-bottom: 5px;
}

.side-footer img {
    display: inline-block;
    position: absolute;
    height: 25px;
    margin: 13px 0px 15px -65px;
}

.side-content p {
    display: inline-block;
    position: absolute;
    margin: 0px 0px 15px -20px;
}

.side-footer:hover {
    background-color: #def3f9;
    color: #12b4e3;
    border-radius: 8px;
}

.side-footer a:hover {
    background-color: #def3f9;
    color: #12b4e3;
    border-radius: 8px;
}

.side-footer:active {
    background-color: #12b4e3;
    color: white;
    border-radius: 8px;
}

.side-footer.active {
    background-color: #12b4e3;
    color: white;
    border-radius: 8px;
}

.Dividing-line {
    width: 70%;
    height: 1px;
    /*background-color: #ccc;*/
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: -2.5px 5px;
}


.main-container {
    /* 图片路径 */
    background-size: cover;
    /* 图片填充方式 */
    background-position: center;
    /* 图片定位 */
    background-repeat: no-repeat;
    /* 禁止图片重复 */
    width: calc(100% - 260px);
    /* 修改宽度 */
    padding: 0 20px 20px 20px;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    /* 增加 z-index 确保主容器在侧边栏之下 */
    z-index: 999;
}

.module.voice2 iframe {
    width: 100%;
    height: 100%;
    margin-left: 0;
    z-index: 100000;
    position: relative;
    border: none;
}

.module {
    display: none;
}

.input-container {
    background-color: #fff;
    width: 700px;
    height: 120px;
    border-radius: 10px;
    position: fixed;
    left: 60.7%;
    top: 75%;
    transform: translate(-50%);
    font-size: 16px;
    border: 1px solid #ccc;
    /* 假设你想要一个透明的边框，修改颜色以适应你的需求 */
    border-image: initial;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.voice-container {
    background-color: #fff;
    width: 700px;
    height: 120px;
    border-radius: 10px;
    position: fixed;
    left: 60.7%;
    top: 75%;
    transform: translate(-50%);
    font-size: 16px;
    border: 1px solid #ccc;
    /* 假设你想要一个透明的边框，修改颜色以适应你的需求 */
    border-image: initial;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cover-container {
    width: 900px;
    height: 120px;
    border-radius: 5px;
    position: fixed;
    left: 60%;
    top: 87%;
    transform: translate(-50%);
    z-index: 10;
}

.chat-input {
    background-color: #fff;
    position: absolute;
    bottom: 0;
    top: 10px;
    left: 50%;
    transform: translate(-50%);
    border: 1px solid #ccc;
    /* 示例边框，你可以根据自己的需求调整 */
    padding: 10px 10px 0 10px;
    width: 660px;
    height: 60px;
    /* 根据需要添加内边距 */
    font-size: 16px;
    overflow-y: auto;
    resize: none;
    z-index: 1;
    border: none;
    outline: none;
}

.voice-input {
    background-color: #fff;
    position: absolute;
    bottom: 0;
    top: 10px;
    left: 50%;
    transform: translate(-50%);
    border: 1px solid #ccc;
    /* 示例边框，你可以根据自己的需求调整 */
    padding: 10px 10px 0 10px;
    width: 660px;
    height: 60px;
    /* 根据需要添加内边距 */
    font-size: 16px;
    overflow-y: auto;
    resize: none;
    z-index: 1;
    border: none;
    outline: none;
}

.input-container img {
    position: absolute;
    bottom: 5px;
    right: 5px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
}

.voice-container img {
    position: absolute;
    bottom: 5px;
    right: 5px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
}

.voice-container div {
    position: fixed;
    bottom: 7px;
    left: 480px;
}

.voice-container button {
    display: inline-block;
}

.chat-item {
    width: 700px;
    position: absolute;
    left: 50%;
    top: 20px;
    padding-bottom: 160px;
    transform: translate(-50%);
    font-size: 16px;
    /* 假设你想要一个透明的边框，修改颜色以适应你的需求 */
    border-image: initial;

}

.voice-item {
    width: 700px;
    position: absolute;
    left: 50%;
    top: 20px;
    padding-bottom: 160px;
    transform: translate(-50%);
    font-size: 16px;
    /* 假设你想要一个透明的边框，修改颜色以适应你的需求 */
    border-image: initial;

}

.message {
    position: relative;
    display: flex;
    width: 100%;
    margin: 5px 0;
}


.message .p1 {
    display: block;
}

.message .p1 {
    position: relative;
    right: 0;
    text-align: right;
    max-width: 65%;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 0.9em;
}

.message .p1 span {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    opacity: 0.5;
}

.user-message {
    justify-content: flex-end;
}

.ai-message {
    justify-content: flex-start;
}

.ai-message .p1 {
    background: #fff;
    text-align: left;
    color: black;
}

.user-message .p1 {
    background: #12b4e3;
    text-align: left;
    color: white;
}

.pleaseinput {
    text-align: end;
    font-size: 12px;
    color: #fff;
    background-color: #333;
    padding: 5px;
    border-radius: 3px;
    z-index: 1000;
    width: 85px;
    position: absolute;
    right: -20px;
    bottom: 40px;
    display: none;
}

.magic-tool2 {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 20px;
}



.tool-cover {
    background-color: #e5e7ed;
    position: fixed;
    right: 60px;
    left: 320px;
    height: 160px;
    padding: 28px;
    /*display: block;*/
    display: none;
    z-index: 100;
}

.toolchoice {
    background-color: #fff;
    position: fixed;
    top: 30px;
    right: 60px;
    left: 320px;
    height: 160px;
    border-radius: 10px;
    padding: 28px;
    display: block;
    z-index: 1000;
}

.toolchoice1 {
    height: 60px;
    margin-bottom: 10px;
}

.toolchoice11 {
    display: inline-block;
    height: 100%;
    width: 23%;
}

.toolchoice111 {
    background-color: #d0e9f0;
    color: #12b4e3;
    height: calc(100% - 12px);
    width: calc(100% - 20px);
    margin: 6px 10px;
    border-radius: 25px;
    /* transform: translate(6px, 10px); */
    display: flex;
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    font-size: 16px;
    cursor: pointer;
}

.toolchoice2 {
    border-radius: 20px;
    height: 88px;
    background-color: #fff;
}

.magic-tool2 img {
    height: 15px;
    width: 15px;
}

.magic-tool2 button {
    background-color: #fff;
    border-radius: 23px;
    margin: 4px;
    padding: 8px 15px;
    height: 40px;
    border: 1px solid rgb(205, 213, 223);
    font-size: 0.875rem;
    cursor: pointer;
    color: inherit;
    font-weight: 100;
    overflow: hidden;
}

.magic-tool2 button:hover {
    background-color: rgb(205, 213, 223);
}

.magic-tool2 button.active {
    background-color: rgb(205, 213, 223) !important;
    transition: background-color 0.3s;
}


.AllToolsword {
    display: none;
}

.AllTools {
    position: absolute;
    top: 331px;
    left: 80px;
    /* Sidebar (240) + 20px padding */
    right: 20px;
    /* Symmetric 20px padding */
    display: flex;
    flex-wrap: wrap;
    gap: 24px 24px;
    /* 行间距和列间距 */
    justify-content: flex-start;
    align-items: stretch;

}

.tools {
    margin: 0;
    height: 95px;
    /* Increased height */
    width: 40px;
    flex: 0 0 calc(50% - 12px);
    box-sizing: border-box;
    display: flex;
    /* Use flexbox for internal layout */
    align-items: center;
    background-color: #fff;
    border: 0.7px solid rgb(227, 232, 239);
    border-radius: 10px;
    cursor: pointer;
    padding: 15px;
    /* Adjusted padding */
}

.tools:hover {
    box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.6);
    ;
}

.tools img {
    margin: 0 15px 0 0;
    /* Clean margins */
    height: 50px;
    width: 50px;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.tools .text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tools .h1p {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.tools .h2p {
    color: #666;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    /* Allow text wrapping */
    white-space: normal;
}

.tool-display {
    /* display: none; */
    background-color: #e5e7ed;
    z-index: 9999;
    left: 270px;
    top: 0;
    bottom: 0;
    right: 0;
    position: absolute;
}

.back-btn {
    margin: 10px;
    padding: 10px;
    width: 50px;
    align-items: center;
    display: flex;
    font-size: 20px;
    cursor: pointer;
    border: #666 solid 1px;
    border-radius: 5px;
}

.tool-display-content {
    background-color: #fff;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 600px;
    border-radius: 10px;
    left: 170px;
    font-size: 18px;
}

.tool-display-content h2 {
    top: 20px;
    position: relative;
    text-align: center;
}

.tool-display-content div {
    margin: 10px 30px;
    font-weight: 900;
}

input button {
    border: none;
    /* 移除默认边框 */
    outline: none;
    /* 移除聚焦时的轮廓线 */
    background: none;
    /* 移除默认背景 */
    cursor: pointer;
    /* 鼠标手势 */
}

.tool-display-content input {
    width: 500px;
    margin: 10px;
    height: 34px;
    border-radius: 12px;
    border: #12b4e3 solid 1px;
}

.tool-display-content textarea {
    width: 500px;
    margin: 10px;
    height: 34px;
    border-radius: 12px;
    border: #12b4e3 solid 1px;
}

.tool-display-content textarea:focus {
    border: #12b4e3 solid 2px;
}

.tool-display-content input:focus {
    outline: none;
    border: #12b4e3 solid 2px;
}


.tool-display-content button {
    width: 100px;
    height: 40px;
    margin: 10px;
    background-color: #12b4e3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 80%;
    transform: translate(-50%, 0);
}

/* Love Module Carousel Styles */
.module.love {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.love-header {
    margin-bottom: 20px;
    text-align: center;
}

.love-header h2 {
    color: #333;
    font-size: 24px;
}

.carousel-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 600px;
    /* Adjust height as needed */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 2;
    font-size: 18px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: white;
    transform: scale(1.2);
}
/* History Module Styles */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.history-header h2 {
    margin: 0;
    color: #333;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.2s;
    border: 1px solid #eee;
}

.history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.record-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.record-id {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #666;
}

.record-type {
    font-weight: bold;
    color: #555;
}

.total-score {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.score-value {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 0.8em;
    color: #888;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metric-label {
    font-size: 0.85em;
    color: #666;
}

.progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
}

.metric-value {
    font-size: 0.9em;
    font-weight: bold;
    text-align: right;
}

.sub-scores {
    display: flex;
    justify-content: space-around;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.advice-section {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

.advice-title {
    font-weight: bold;
    color: #856404;
    margin-bottom: 5px;
}

.advice-content {
    font-size: 0.95em;
    color: #664d03;
    line-height: 1.5;
}

.audio-player audio {
    width: 100%;
    height: 40px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #888;
}

.empty-state button {
    margin-top: 15px;
    padding: 8px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

/* Not Logged In State */
.not-logged-in-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.not-logged-in-state h3 {
    color: #333;
    font-size: 20px;
    margin: 0 0 10px 0;
}

.not-logged-in-state p {
    color: #666;
    font-size: 14px;
    margin: 0 0 25px 0;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #12b4e3, #0a8fb8);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(18, 180, 227, 0.4);
}

/* History Module Container */
.module.history {
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Custom Learning & Exam Service Module Styles */
.module.custom-learning,
.module.exam-service {
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.service-header {
    text-align: center;
    margin-bottom: 40px;
}

.service-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.service-subtitle {
    color: #666;
    font-size: 16px;
}

.service-content {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Pricing Cards */
.pricing-cards,
.exam-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.pricing-card,
.exam-card {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.pricing-card:hover,
.exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pricing-card.premium {
    border-color: #12b4e3;
    position: relative;
}

.pricing-card .card-header,
.exam-card .card-header {
    background: linear-gradient(135deg, #12b4e3, #0a8fb8);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.pricing-card.premium .card-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.pricing-card .card-header h3,
.exam-card .card-header h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
}

.pricing-card .price,
.exam-card .price {
    font-size: 36px;
    font-weight: bold;
}

.pricing-card .price span,
.exam-card .price span {
    font-size: 16px;
    font-weight: normal;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffd700;
    color: #333;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.pricing-card .card-body,
.exam-card .card-body {
    padding: 25px;
}

.pricing-card .card-body ul,
.exam-card .card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-card .card-body li,
.exam-card .card-body li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.pricing-card .card-body li:before,
.exam-card .card-body li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #12b4e3;
    font-weight: bold;
}

.pricing-card.premium .card-body li:before {
    color: #ff6b6b;
}

.pricing-card .card-footer,
.exam-card .card-footer {
    padding: 20px 25px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.btn-primary {
    background: linear-gradient(135deg, #12b4e3, #0a8fb8);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card.premium .btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(18, 180, 227, 0.4);
}

.pricing-card.premium .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Service Features */
.service-features {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.service-features h3 {
    text-align: center;
    color: #333;
    font-size: 22px;
    margin-bottom: 30px;
}

.feature-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-item {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: transform 0.2s;
}

.feature-item:hover {
    transform: translateY(-3px);
    background: #e8f4f8;
}

.feature-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Dashboard Styles for Custom Learning & Exam Service */
.learning-dashboard,
.exam-dashboard {
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.dashboard-header h2 {
    color: #333;
    font-size: 22px;
    margin: 0;
}

.user-plan-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.plan-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 6px 16px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

.plan-expire {
    color: #666;
    font-size: 14px;
}

/* Profile and Stats Container */
.profile-stats-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-stats-container .user-profile-section {
    flex: 2;
    margin-bottom: 0;
}

.profile-stats-container .stats-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Stats Row - Mini Cards */
.stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.stat-mini-card {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stats-column .stat-mini-card {
    width: 100%;
}

.stat-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.mini-icon {
    font-size: 28px;
}

.mini-info {
    display: flex;
    flex-direction: column;
}

.mini-value {
    font-size: 22px;
    font-weight: bold;
    color: #12b4e3;
}

.mini-label {
    font-size: 12px;
    color: #666;
}

/* SVG Icon Styles */
.mini-icon-svg,
.feature-icon-svg,
.buy-icon-svg {
    font-size: 28px;
    color: #12b4e3;
}

/* User Profile Section */
.user-profile-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header-with-action h3 {
    color: #333;
    font-size: 18px;
    margin: 0;
}

.edit-profile-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f0f9fc;
    border: 1px solid #12b4e3;
    color: #12b4e3;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.edit-profile-btn:hover {
    background: #12b4e3;
    color: white;
}

.profile-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.profile-avatar {
    font-size: 80px;
    color: #12b4e3;
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.profile-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.profile-value {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

/* Exam Features Grid */
.exam-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.exam-feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.exam-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.exam-card-left {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exam-card-left .exam-icon-svg {
    font-size: 50px;
    color: #12b4e3;
}

.exam-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.exam-feature-card h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.exam-feature-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.card-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #12b4e3, #0a8fb8);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 5px;
}

.card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(18, 180, 227, 0.3);
}

/* Learning Path Section */
.learning-path-section,
.exam-records-section,
.ability-analysis-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.learning-path-section h3,
.exam-records-section h3,
.ability-analysis-section h3,
.feature-modules-section h3 {
    color: #333;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.path-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.path-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.2s;
}

.path-item:hover {
    background: #e8f4f8;
}

.path-item.completed {
    background: #e8f5e9;
}

.path-item.completed:hover {
    background: #c8e6c9;
}

.path-item.active {
    background: #e3f2fd;
    border: 2px solid #12b4e3;
}

.path-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.path-item.completed .path-marker {
    background: #4caf50;
    color: white;
}

.path-item.active .path-marker {
    background: #12b4e3;
    color: white;
}

.path-item.pending .path-marker {
    background: #e0e0e0;
    color: #999;
}

.path-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.path-content h4 {
    margin: 0;
    font-size: 15px;
    color: #333;
    min-width: 120px;
}

.path-content p {
    margin: 0;
    font-size: 13px;
    color: #666;
    min-width: 120px;
}

.path-progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    max-width: 200px;
}

.path-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #12b4e3, #0a8fb8);
    border-radius: 4px;
    transition: width 0.3s;
}

.path-item.completed .path-progress-fill {
    background: linear-gradient(90deg, #4caf50, #45a049);
}

/* Feature Modules Section */
.feature-modules-section {
    margin-bottom: 20px;
}

.feature-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.feature-mini-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
    cursor: pointer;
}

.feature-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.feature-mini-card.highlight {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #12b4e3;
}

.feature-mini-card .feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.feature-mini-card h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.feature-mini-card p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Exam Tabs */
.exam-tabs {
    display: flex;
    gap: 10px;
}

.exam-tab {
    padding: 8px 20px;
    border: 2px solid #12b4e3;
    background: white;
    color: #12b4e3;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.exam-tab.active,
.exam-tab:hover {
    background: #12b4e3;
    color: white;
}

/* Exam Records */
.exam-records-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exam-record-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.2s;
}

.exam-record-item:hover {
    background: #e8f4f8;
}

.record-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.record-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.record-date {
    font-size: 12px;
    color: #999;
}

.record-score {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.record-score.good {
    background: #e8f5e9;
    color: #4caf50;
}

.record-score.average {
    background: #fff3e0;
    color: #ff9800;
}

.record-btn {
    padding: 6px 15px;
    background: #12b4e3;
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.record-btn:hover {
    background: #0a8fb8;
}

/* Ability Analysis */
.ability-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ability-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ability-name {
    min-width: 80px;
    font-size: 14px;
    color: #333;
}

.ability-bar {
    flex: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.ability-fill {
    height: 100%;
    background: linear-gradient(90deg, #12b4e3, #0a8fb8);
    border-radius: 5px;
    transition: width 0.3s;
}

.ability-score {
    min-width: 30px;
    text-align: right;
    font-size: 14px;
    font-weight: bold;
    color: #12b4e3;
}

/* Float Buy Button */
.float-buy-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 100;
}

.float-buy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.buy-icon {
    font-size: 20px;
}

.buy-text {
    font-size: 14px;
    font-weight: bold;
}

/* Purchase Modal */
.purchase-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
}

/* Feedback Float Button */
.feedback-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #12b4e3, #0a8fb8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(18, 180, 227, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 100;
    text-decoration: none;
}

.feedback-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(18, 180, 227, 0.5);
}

.feedback-float-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Modal Pricing Cards */
.modal-pricing-cards-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-pricing-card {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-pricing-card:hover,
.modal-pricing-card.selected {
    border-color: #12b4e3;
    background: #f0f9fc;
}

.modal-pricing-card.premium {
    border-color: #ff6b6b;
}

.modal-pricing-card.premium:hover,
.modal-pricing-card.premium.selected {
    background: #fff5f5;
}

.modal-pricing-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.modal-pricing-card .price {
    font-size: 24px;
    font-weight: bold;
    color: #12b4e3;
}

.modal-pricing-card.premium .price {
    color: #ff6b6b;
}

.modal-pricing-card ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
    color: #666;
    font-size: 14px;
}

.modal-pricing-card li {
    margin-bottom: 5px;
}

.modal-buy-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #12b4e3, #0a8fb8);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.modal-buy-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(18, 180, 227, 0.4);
}

