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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Arial', sans-serif;
    background: linear-gradient(145deg, #B2C7DA 0%, #A8BFCF 100%);
    height: 100vh;
    height: 100dvh; /* 동적 뷰포트 높이 사용 */
    overflow: hidden;
    color: #2C2C2C;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* 카카오톡 컨테이너 */
.kakao-container {
    width: 100%;
    height: 100vh;
    height: 100dvh; /* 동적 뷰포트 높이 사용 */
    background: #B2C7DA;
    display: flex;
    flex-direction: column;
    position: relative;
    /* iOS Safe Area 처리 - 전체 컨테이너에 적용 */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* 카카오톡 헤더 */
.kakao-header {
    background: #3C1E1E;
    color: white;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    padding-top: calc(env(safe-area-inset-top) + 8px);
    position: relative;
    z-index: 100;
    /* iOS Safe Area 처리 - 상단바와 겹치지 않도록 */
}

.header-center {
    flex: 1;
    text-align: center;
}

.chat-room-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.room-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.room-members {
    font-size: 12px;
    color: #CCCCCC;
    margin-top: 2px;
}

/* 채팅 영역 */
.chat-area {
    flex: 1;
    background: linear-gradient(145deg, #B2C7DA 0%, #A8BFCF 100%);
    overflow: hidden;
    position: relative;
}

.chat-messages {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 24px;
}

/* 메시지 그룹 */
.message-group {
    margin-bottom: 20px;
}

.message-group.system {
    text-align: center;
}

.system-message {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    color: #555;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-group.test {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.test-message {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: #856404;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.3);
    text-align: center;
}

/* 사용자/AI 메시지 그룹 */
.message-group.user, .message-group.ai {
    display: flex;
    gap: 8px;
}

.message-group.user {
    flex-direction: row-reverse;
}

.profile-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.profile-image {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.ai-profile {
    background: linear-gradient(135deg, #FFE812 0%, #F5D100 100%);
    color: #2C2C2C;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: bold;
}

.ai-profile:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 232, 18, 0.4);
}

.ai-profile svg {
    width: 24px;
    height: 24px;
}

.user-profile {
    background: linear-gradient(135deg, #8E8E93 0%, #6D6D70 100%);
}

.sender-name {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.6);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.message-content {
    flex: 1;
    max-width: 70%;
}

.message-group.user .message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* 메시지 말풍선 */
.message-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    margin-bottom: 6px;
    font-weight: 400;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-bubble {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    color: #2C2C2C;
    border-top-left-radius: 6px;
}

.user-bubble {
    background: linear-gradient(135deg, #FFE812 0%, #F5D100 100%);
    color: #2C2C2C;
    border-top-right-radius: 6px;
}

.message-time {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    margin: 0 8px;
    font-weight: 500;
}

.message-group.user .message-time {
    text-align: right;
}

/* 입력 영역 */
.input-area {
    background: #F7F7F7;
    padding: 6px 16px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 6px);
    border-top: 1px solid #E5E5E5;
    position: relative;
    flex-shrink: 0; /* 입력 영역이 축소되지 않도록 */
    min-height: 50px; /* 최소 높이 보장 */
    /* iOS Safe Area 처리 - 하단바와 겹치지 않도록 */
}

.input-container {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 100%;
}

.attach-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #D1D1D1;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    flex-shrink: 0;
}

.attach-btn:hover {
    background: #C1C1C1;
}

.text-input-wrapper {
    flex: 1;
    background: white;
    border-radius: 20px;
    border: 1px solid #E5E5E5;
    padding: 2px 12px;
    min-height: 16px;
    max-height: 120px;
    display: flex;
    align-items: center;
}

.text-input-wrapper:focus-within {
    outline: none;
    border-color: #FFE812;
    box-shadow: 0 0 0 2px rgba(255, 232, 18, 0.2);
}

.text-input-wrapper textarea {
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 18px;
    background: transparent;
    height: 25px;
    min-height: 25px;
    max-height: 80px;
    padding: 2px 0;
    margin: 0;
    vertical-align: middle;
    overflow-y: hidden;
    transition: height 0.1s ease-out;
    box-sizing: border-box;
    
    /* 모바일 최적화 */
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: text;
    user-select: text;
    touch-action: manipulation;
    
    /* iOS Safari 줌 방지 */
    font-size: max(14px, 1rem);
}

.text-input-wrapper textarea::placeholder {
    color: #999;
}

.send-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFE812;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.send-btn:disabled {
    background: #D1D1D1;
    cursor: not-allowed;
}

.send-btn:not(:disabled):hover {
    background: #F5D800;
    transform: scale(1.05);
}

.send-icon {
    width: 16px;
    height: 16px;
}

/* 설정 모달 */
.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.modal-body {
    padding: 24px;
}

.api-key-input {
    margin-bottom: 24px;
}

.api-key-input label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2C2C2C;
    font-size: 15px;
}

.api-key-input input {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    transition: all 0.2s ease;
    background: #F8F9FA;
}

.api-key-input input:focus {
    outline: none;
    border-color: rgba(255, 232, 18, 0.5);
    box-shadow: 0 0 0 4px rgba(255, 232, 18, 0.1);
    background: white;
}

.api-status {
    margin-top: 12px;
    font-size: 13px;
    color: #E74C3C;
    font-weight: 500;
}

.api-status.connected {
    color: #27AE60;
}

.save-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #FFE812 0%, #F5D100 100%);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #2C2C2C;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 232, 18, 0.3);
}

.save-btn:hover {
    background: linear-gradient(135deg, #F5D100 0%, #E6C200 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 232, 18, 0.4);
}

/* 결과 모달 */
.results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.results-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 640px;
    height: 85%;
    max-height: 720px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.results-header {
    background: linear-gradient(135deg, #2C2C2C 0%, #1A1A1A 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.results-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.clear-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.close-results {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-results:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.results-list {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.result-item {
    background: linear-gradient(135deg, #F8F9FA 0%, #F1F3F4 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #FFE812;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.result-question {
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.1px;
}

.result-details {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.detail-label {
    font-weight: 700;
    color: #6C757D;
    min-width: 90px;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.detail-value {
    flex: 1;
    color: #2C2C2C;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}

.detail-value.category {
    color: #E74C3C;
    font-weight: 700;
}

.detail-value.department {
    color: #17A2B8;
    font-weight: 700;
}

.detail-value.answerable.true {
    color: #28A745;
    font-weight: 700;
}

.detail-value.answerable.false {
    color: #DC3545;
    font-weight: 700;
}

.ai-response {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* 로딩 오버레이 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.loading-content {
    background: rgba(60, 30, 30, 0.9);
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loading-text {
    font-size: 14px;
    color: #FFE812;
    font-weight: 500;
}

/* 추천 질문 패널 */
.recommend-panel {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 12px 12px 0 0;
    border: 1px solid #E5E5E5;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
    z-index: 100;
}

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

.recommend-header {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #2C2C2C;
    border-bottom: 1px solid #E5E5E5;
    text-align: center;
    background: #F8F8F8;
}

.recommend-questions {
    padding: 8px 0;
}

.recommend-item {
    padding: 12px 16px;
    color: #2C2C2C;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #F0F0F0;
    font-size: 13px;
}

.recommend-item:hover {
    background: #F0F8FF;
    color: #4A90E2;
}

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

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

.chat-messages::-webkit-scrollbar-track,
.results-list::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb,
.results-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.results-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* 모바일 환경 최적화 */
@supports (height: 100dvh) {
    body {
        height: 100dvh;
    }
    
    .kakao-container {
        height: 100dvh;
    }
}

/* 모바일 키보드 대응 */
@media screen and (max-height: 600px) {
    .chat-messages {
        padding-bottom: 12px;
    }
    
    .input-area {
        padding: 4px 12px;
        min-height: 44px;
    }
    
    .kakao-header {
        height: 50px;
    }
}

/* 안드로이드 크롬 전용 최적화 */
@media screen and (max-width: 768px) {
    .kakao-container {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    .input-area {
        position: sticky;
        bottom: 0;
        z-index: 10;
        background: #F7F7F7;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .modal-content,
    .results-content {
        width: 95%;
        height: 90%;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    /* 모바일에서 텍스트 영역 최적화 */
    .text-input-wrapper textarea {
        font-size: 16px; /* iOS 줌 방지 */
        -webkit-appearance: none;
    }
}

/* 헤더 설정 버튼 */
.header-right {
    display: flex;
    align-items: center;
}

.test-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.test-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.test-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

.test-btn.running {
    background: rgba(255, 193, 7, 0.2);
    animation: pulse 1s infinite;
}


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

.stop-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.stop-btn:hover {
    background: rgba(220, 53, 69, 0.2);
}

.stop-btn:active {
    background: rgba(220, 53, 69, 0.3);
}

.settings-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.settings-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

/* 설정 패널 배경 */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* 설정 패널 */
.settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #E5E5E5;
}

.settings-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-settings {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-settings:hover {
    background: #F5F5F5;
}

.settings-content {
    padding: 24px;
}

.setting-group {
    margin-bottom: 24px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.setting-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

/* 설정 패널 내 답변 길이 옵션 */
.settings-panel .response-length-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-panel .response-length-options input[type="radio"] {
    display: none;
}

.settings-panel .length-option {
    padding: 16px;
    border-radius: 8px;
    background: #F8F9FA;
    border: 2px solid #E9ECEF;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
}

.settings-panel .length-option:hover {
    background: #F1F3F4;
    border-color: #DEE2E6;
}

.settings-panel .response-length-options input[type="radio"]:checked + .length-option {
    background: #3C1E1E;
    border-color: #3C1E1E;
    color: white;
}

.settings-panel .response-length-options input[type="radio"]:checked + .length-option:hover {
    background: #2A1515;
    border-color: #2A1515;
}

.option-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.option-desc {
    font-size: 13px;
    opacity: 0.8;
}

.settings-panel .response-length-options input[type="radio"]:checked + .length-option .option-desc {
    opacity: 0.9;
}

/* 테스트 설정 패널 */
.test-settings-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.test-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.test-settings-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.close-test-settings {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-test-settings:hover {
    background: #f0f0f0;
}

.test-settings-content {
    padding: 24px;
}

.range-options {
    display: flex;
    gap: 16px;
    margin: 16px 0;
}

.range-input-group {
    flex: 1;
}

.range-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.range-input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.range-input-group input:focus {
    outline: none;
    border-color: #3C1E1E;
}

.range-info {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
}

.test-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.start-test-btn, .cancel-test-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-test-btn {
    background: #3C1E1E;
    color: white;
}

.start-test-btn:hover {
    background: #2A1515;
}

.cancel-test-btn {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.cancel-test-btn:hover {
    background: #e9ecef;
}

/* 알림 테스트 스타일 */
.notification-test-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-test-btn {
    padding: 12px 24px;
    background: #3C1E1E;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-test-btn:hover {
    background: #2A1515;
}

.notification-test-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.notification-status {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* 디버그 로그 패널 스타일 */
.debug-log-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

.debug-log-header {
    background: white;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.debug-log-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.debug-log-actions {
    display: flex;
    gap: 8px;
}

.debug-log-btn {
    padding: 8px 16px;
    background: #3C1E1E;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.debug-log-btn:hover {
    background: #2A1515;
}

.debug-log-btn:active {
    transform: scale(0.95);
}

.debug-log-content {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 0 0 8px 8px;
    flex: 1;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.debug-log-empty {
    color: #888;
    text-align: center;
    padding: 40px;
    font-style: italic;
}

.debug-log-entry {
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid #333;
}

.debug-log-entry:last-child {
    border-bottom: none;
}

.debug-log-time {
    color: #888;
    font-size: 11px;
    margin-right: 8px;
}

.debug-log-level-info {
    color: #4ec9b0;
}

.debug-log-level-warn {
    color: #dcdcaa;
}

.debug-log-level-error {
    color: #f48771;
}

.debug-log-level-log {
    color: #d4d4d4;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .debug-log-panel {
        padding: 10px;
    }
    
    .debug-log-header {
        padding: 12px 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .debug-log-header h3 {
        font-size: 16px;
    }
    
    .debug-log-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .debug-log-btn {
        flex: 1;
        padding: 10px;
        font-size: 13px;
    }
    
    .debug-log-content {
        font-size: 11px;
        padding: 12px;
    }
}
