/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-container {
    width: 90%;
    max-width: 800px;
    height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 헤더 */
.chat-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-image-container {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-image-container:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.upload-btn {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: 2px solid white;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.profile-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.profile-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.profile-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-header h1 {
    font-size: 24px;
    font-weight: 600;
}

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

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4757;
    animation: pulse 2s infinite;
}

.status-dot.connected {
    background: #2ed573;
}

.status-text {
    font-size: 14px;
    font-weight: 500;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 모달 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    min-width: 300px;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.3s;
}

.modal-content input:focus {
    border-color: #4facfe;
}

.modal-content button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-content button:hover {
    transform: translateY(-2px);
}

/* 토큰 모달 특별 스타일 */
#tokenModal .modal-content {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: 2px solid #ff6b6b;
}

#tokenModal .modal-content h2 {
    color: #d63031;
    font-size: 22px;
    margin-bottom: 15px;
}

#tokenModal .modal-content p {
    color: #636e72;
    margin-bottom: 15px;
    font-size: 14px;
}

#tokenModal .modal-content input {
    border: 2px solid #ff6b6b;
    background: rgba(255, 255, 255, 0.9);
}

#tokenModal .modal-content input:focus {
    border-color: #d63031;
    box-shadow: 0 0 10px rgba(214, 48, 49, 0.3);
}

#tokenModal .modal-content button {
    background: linear-gradient(135deg, #ff6b6b 0%, #d63031 100%);
    font-weight: 700;
}

#tokenModal .token-help {
    font-size: 12px;
    color: #636e72;
    margin-top: 10px;
    font-style: italic;
}

/* Google 로그인 버튼 */
.google-login-btn {
    background: white;
    color: #333;
    border: 2px solid #e1e8ed;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 20px 0;
}

.google-login-btn:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
    transform: translateY(-2px);
}

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

.login-help {
    font-size: 12px;
    color: #636e72;
    margin-top: 10px;
    font-style: italic;
}

/* 채팅 메시지 영역 */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.welcome-message {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message.user {
    align-items: flex-end;
}

.message.ai {
    align-items: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
}

.message.user .message-content {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.ai .message-content {
    background: white;
    color: #333;
    border: 1px solid #e1e8ed;
    border-bottom-left-radius: 4px;
}

.message-username {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #666;
}

.message.user .message-username {
    color: #4facfe;
}

.message.ai .message-username {
    color: #2ed573;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* 입력 영역 */
.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e1e8ed;
}

.input-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-btn-bottom {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.profile-btn-bottom:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.profile-btn-bottom:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-icon {
    font-size: 16px;
}

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

/* 대화 요약 스타일 */
.summary-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.summary-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #007bff;
}

.summary-topics h5,
.emotional-state h5,
.personality-insights h5 {
    font-size: 13px;
    color: #666;
    margin: 10px 0 5px 0;
    font-weight: 600;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.topic-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.emotion-badge {
    background: #fff3e0;
    color: #f57c00;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.personality-insights ul {
    margin: 5px 0;
    padding-left: 20px;
}

.personality-insights li {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
    line-height: 1.4;
}


.chat-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input input:focus {
    border-color: #4facfe;
}

.chat-input input:disabled {
    background: #f8f9fa;
    color: #999;
}

.chat-input button {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.chat-input button:hover:not(:disabled) {
    transform: scale(1.05);
}

.chat-input button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.send-icon {
    font-size: 18px;
}

.stt-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.stt-btn:hover:not(:disabled) {
    transform: scale(1.05);
}

.stt-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.stt-btn.recording {
    background: linear-gradient(135deg, #ff4757 0%, #c44569 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.stt-icon {
    font-size: 18px;
}

/* 타이핑 인디케이터 */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #4facfe;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* 바지인 인디케이터 */
.barge-in-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: bargeInPulse 1s infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.barge-in-icon {
    font-size: 16px;
    animation: bargeInBounce 0.8s infinite;
}

.barge-in-text {
    font-size: 13px;
}

@keyframes bargeInPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
    }
}

@keyframes bargeInBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* 스크롤바 스타일 */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .chat-container {
        width: 95%;
        height: 95vh;
        border-radius: 15px;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-header h1 {
        font-size: 20px;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    .profile-section {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .profile-image-container {
        width: 40px;
        height: 40px;
    }
    
    .upload-btn {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .profile-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .chat-input-container {
        padding: 15px;
    }
    
    .input-controls {
        gap: 8px;
    }
    
    .profile-btn-bottom {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-text {
        font-size: 13px;
    }
}

/* 프로필 표시 - 모던 디자인 */
.profile-display {
    background: #ffffff;
    border-radius: 24px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: profileSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

@keyframes profileSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.profile-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.profile-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.close-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg) scale(1.1);
}

.profile-content {
    padding: 24px;
    background: #fafbfc;
}

.profile-section {
    margin-bottom: 24px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.profile-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h4 {
    margin: 0 0 24px 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 2px solid #a0aec0;
}

.trait-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.trait {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trait > span:first-child {
    font-size: 14px;
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 4px;
}

.trait-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 24px;
}

.trait-label-left,
.trait-label-right {
    flex: 0 0 auto;
    font-size: 16px;
    color: #4a5568;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.trait-label-left {
    text-align: left;
}

.trait-label-right {
    text-align: right;
}

.trait-labels .trait-value {
    flex: 1;
    text-align: center;
    color: #4facfe;
    font-weight: 800;
    font-size: 16px;
    white-space: nowrap;
    letter-spacing: 0.3px;
    min-width: 0;
}

/* 양방향 게이지 */
.trait-bar-container {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.trait-bar-center {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #cbd5e0;
    transform: translateX(-50%);
    z-index: 2;
}

.trait-bar-left,
.trait-bar-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    border-radius: 10px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trait-bar-left {
    left: 0;
    right: 50%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.trait-bar-right {
    right: 0;
    left: 50%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.trait-bar-left.highlight,
.trait-bar-right.highlight {
    height: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* MBTI 스타일 - 개선 */
.mbti-info {
    margin-bottom: 24px;
    padding: 28px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 20px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 24px rgba(79, 172, 254, 0.3);
    position: relative;
    overflow: hidden;
}

.mbti-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mbti-type {
    position: relative;
    z-index: 1;
}

.mbti-type h5 {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 8px 0;
    letter-spacing: 4px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mbti-info .mbti-type p {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.characteristics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.characteristic {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(79, 172, 254, 0.2);
    box-shadow: 0 2px 4px rgba(79, 172, 254, 0.1);
    transition: all 0.3s ease;
}

.characteristic:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(79, 172, 254, 0.2);
}

.profile-section p {
    margin: 8px 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

/* 요약 섹션 개선 */
.summary-content {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid rgba(79, 172, 254, 0.1);
}

.summary-text {
    font-size: 15px;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #4facfe;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.summary-topics h5,
.emotional-state h5,
.personality-insights h5 {
    font-size: 14px;
    color: #4a5568;
    margin: 16px 0 10px 0;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.topic-tag {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(25, 118, 210, 0.2);
    box-shadow: 0 2px 4px rgba(25, 118, 210, 0.1);
}

.emotion-badge {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #f57c00;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    border: 1px solid rgba(245, 124, 0, 0.2);
    box-shadow: 0 2px 4px rgba(245, 124, 0, 0.1);
}

.personality-insights ul {
    margin: 10px 0;
    padding-left: 24px;
    list-style: none;
}

.personality-insights li {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 10px;
    line-height: 1.7;
    position: relative;
    padding-left: 20px;
}

.personality-insights li::before {
    content: '✨';
    position: absolute;
    left: 0;
    font-size: 12px;
}

/* 통계 섹션 개선 */
.stats-section {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%) !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    background: white;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.stat-label {
    font-size: 12px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 16px;
    color: #4facfe;
    font-weight: 700;
}

/* 애니메이션 */
.message {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
