.chat-section {
    padding: 120px 20px 60px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0A557A 0%, #0d6a96 50%, #0A557A 100%);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.chat-container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 600px;
}
.chat-header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1);
}
.coach-info {
    display: flex;
    align-items: center;
    gap: 20px;
}
.coach-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0A557A, #0d6a96);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.coach-initial {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
}
.coach-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.coach-name {
    font-family: 'Noto Serif SC', serif;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.05em;
    margin: 0;
}
.coach-desc {
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin: 0;
}
.reset-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Noto Serif SC', serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.reset-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}
.reset-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}
.reset-btn:hover .reset-icon {
    transform: rotate(-180deg);
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar {
    width: 8px;
}
.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.message {
    display: flex;
    gap: 15px;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.message-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.message-assistant .message-avatar {
    background: linear-gradient(135deg, #0A557A, #0d6a96);
}
.message-user .message-avatar {
    background: rgba(255, 255, 255, 0.15);
}
.avatar-initial {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}
.message-content {
    font-size: 15px;
    font-size: 15px;    flex: 1;
    padding: 15px 20px;
    border-radius: 18px;
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
}
.message-assistant .message-content {
    font-size: 15px;
    font-size: 15px;    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.message-user {
    flex-direction: row-reverse;
}
.message-user .message-content {
    font-size: 15px;
    font-size: 15px;    background-color: rgba(10, 85, 122, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.message-content p {
    margin-bottom: 12px;
}
.message-content p:last-child {
    margin-bottom: 0;
}
.message-content ul {
    margin: 12px 0;
    padding-left: 20px;
}
.message-content li {
    margin-bottom: 8px;
}
.message-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.loading-dots {
    display: flex;
    gap: 4px;
}
.loading-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.loading-dot:nth-child(1) {
    animation-delay: -0.32s;
}
.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}
@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.6;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.chat-input-container {
    padding: 20px 40px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
}
.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}
.input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-family: 'Noto Serif SC', serif;
    font-size: 15px;    line-height: 1.6;
    resize: none;
    outline: none;
    max-height: 120px;
    min-height: 24px;
}
.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}
.send-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0A557A, #0d6a96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.send-btn:not(:disabled):hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.send-btn:not(:disabled):active {
    transform: scale(0.95);
}
.send-icon {
    font-size: 20px;
    color: #FFFFFF;
    font-weight: 700;
}
.input-hint {
    text-align: center;
    font-family: 'Noto Serif SC', serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-style: italic;
}
@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 160px);
        min-height: 500px;
    }
    .chat-header {
        padding: 20px 24px;
    }
    .coach-avatar {
        width: 50px;
        height: 50px;
    }
    .coach-name {
        font-size: 18px;
    }
    .coach-desc {
        font-size: 12px;
    }
    .chat-messages {
        padding: 20px 24px;
    }
    .chat-input-container {
        padding: 16px 24px 20px;
    }
    .reset-text {
        display: none;
    }
}


@media (max-width: 768px) {
    .footer-hint {
        font-size: 10px;
    }
}

.message-content .footer-hint { font-size: 6px !important; }
