* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 모든 input 요소에 크롬 파란색 포커스 제거 */
input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    -webkit-focus-ring-color: transparent !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 로그인 화면 스타일 */
.login-body {
    background-color: #f2f4f6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 550px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo-section {
    margin-bottom: 30px;
}

.logo {
    font-size: 36px;
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 10px;
}

.logo-accent {
    color: #667eea;
}

.forgot-logo-image,
.register-logo-image {
    width: auto;
    height: 50px;
    max-width: 280px;
    margin-bottom: 10px;
    object-fit: contain;
}

.subtitle {
    color: #666;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.login-btn {
    width: 100%;
    background-color: #7b3ceb;
    color: white;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background-color: #4f39f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123, 60, 235, 0.3);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    border: 1px solid #fcc;
}

/* 언어 선택 화면 스타일 개선 */
.language-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.language-logo-image {
    width: auto;
    height: 55px;
    max-width: 300px;
    margin-bottom: 15px;
    object-fit: contain;
}

.language-header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.language-header h2 {
    font-size: 1.2em;
    color: #7f8c8d;
    font-weight: normal;
}

.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.form-section h3 {
    font-size: 1.4em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 입력 언어 자막 포함 여부 강조 스타일 */
.subtitle-section {
    background: #f8f9fa;
    color: #2c3e50;
    border-left: 4px solid #3498db;
}

.subtitle-section h3 {
    color: #2c3e50;
    font-size: 1.4em;
}

.subtitle-checkbox-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.subtitle-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.subtitle-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    transform: scale(1.3);
    accent-color: #3498db;
}

.subtitle-checkbox-text {
    text-shadow: none;
}

.subtitle-note {
    font-size: 0.9em;
    opacity: 0.8;
    text-align: center;
    margin: 0;
    font-style: italic;
    color: #7f8c8d;
}

/* 입력 언어 그룹 스타일 */
.input-language-group {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.input-language-group h4 {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.input-language-group h5 {
    color: #34495e;
    font-size: 1em;
    margin: 20px 0 10px 0;
}

.language-selection {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.language-select {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background: white;
}

.language-select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.remove-language-btn {
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

.remove-language-btn:hover {
    background: #c0392b;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.language-option:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.language-option input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.language-option span {
    font-size: 0.9em;
    color: #495057;
}

.add-language-btn {
    padding: 12px 25px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background 0.3s;
    margin-top: 15px;
}

.add-language-btn:hover {
    background: #229954;
}

.language-note {
    font-size: 0.9em;
    color: #7f8c8d;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* 테마 선택 스타일 */
.theme-selection {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.bg-option-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bg-option {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dark-bg {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.light-bg {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border: 1px solid #ddd;
}

.bg-label {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.light-bg .bg-label {
    color: #333;
    text-shadow: none;
}

input[type="radio"]:checked + .bg-option {
    border-color: #667eea;
    transform: scale(1.05);
}

input[type="radio"] {
    display: none;
}

/* 기존 테마 옵션 스타일 제거 */
.theme-option {
    display: none;
}

.theme-radio {
    display: none;
}

.theme-label {
    display: none;
}

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

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: #e74c3c;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.modal-content p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: center;
}

.modal-btn {
    padding: 12px 30px;
    background: #7b3ceb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s;
}

.modal-btn:hover {
    background: #4f39f6;
    box-shadow: 0 4px 12px rgba(123, 60, 235, 0.3);
}

/* 폼 액션 버튼 */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.start-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .language-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-selection {
        flex-direction: column;
        align-items: center;
    }
    
    .language-selection {
        flex-direction: column;
        align-items: stretch;
    }
    
    .remove-language-btn {
        margin-top: 10px;
    }
}

/* 언어 선택 화면 스타일 */
.language-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    background: #f8f9fa;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    text-align: center;
    padding: 20px 0;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 20px;
    color: #666;
    margin: 0 0 10px 0;
    font-weight: 400;
}

.header .subtitle {
    font-size: 28px;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
}

/* 헤더용 공유 버튼 */
.share-button-header {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.share-button-header:hover {
    background-color: #2980b9;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.4);
}

.main-title {
    font-size: 42px;
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 10px;
}

.main-subtitle {
    font-size: 16px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.logout-btn {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c82333;
}

.language-select-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.language-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.language-group {
    flex: 1;
}

.language-label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.language-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

.language-arrow {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.output-group {
    flex: 2;
}

.language-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
}

.language-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.language-checkbox label {
    font-size: 14px;
    cursor: pointer;
}

.language-note {
    margin-top: 15px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

.checkbox-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.checkmark {
    color: #4caf50;
    font-weight: bold;
}

.auto-detect {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
}

.auto-detect input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.background-options {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.bg-option-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.bg-option {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.dark-bg {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.light-bg {
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    border: 1px solid #ddd;
}

.bg-label {
    color: white;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.light-bg .bg-label {
    color: #333;
    text-shadow: none;
}

input[type="radio"]:checked + .bg-option {
    border-color: #667eea;
    transform: scale(1.05);
}

input[type="radio"] {
    display: none;
}

.start-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.start-btn:hover {
    transform: translateY(-2px);
}

/* 번역 화면 스타일 */
.translate-body {
    background: #f5f7fa;
    min-height: 100vh;
}

.translate-body.dark-theme {
    background: #1a1a1a;
    color: #ffffff;
}

.translate-body.light-theme {
    background: #f5f7fa;
    color: #333333;
}

.translate-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.translate-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-theme .translate-header {
    background: #2d2d2d;
    color: white;
}

.case-info h2 {
    color: #2c5282;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: bold;
}

.dark-theme .case-info h2 {
    color: #67b7dc;
}

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

.dark-theme .case-subtitle {
    color: #ccc;
}

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

.back-btn, .logout-btn {
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.back-btn {
    background: #f0f0f0;
    color: #333;
}

.back-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.logout-btn {
    background: #dc3545;
    color: white;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* 번역 영역 */
.translation-area {
    margin-bottom: 120px;
}

.original-box {
    background: linear-gradient(135deg, #2c5282, #3d6aa2);
    border-radius: 15px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.3);
}

.dark-theme .original-box {
    background: linear-gradient(135deg, #1e3a5f, #2d4a6b);
}

.box-header {
    background: rgba(0, 0, 0, 0.15);
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.original-box .box-header h3 {
    color: white;
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.box-content {
    padding: 25px;
    font-size: 18px;
    line-height: 1.7;
    min-height: 120px;
    display: flex;
    align-items: center;
}

.original-box .box-content {
    color: white;
    background: transparent;
    font-weight: 500;
}

.translation-boxes {
    display: grid;
    gap: 25px;
}

.translation-boxes[data-count="1"] {
    grid-template-columns: 1fr;
}

.translation-boxes[data-count="2"] {
    grid-template-columns: 1fr 1fr;
}

.translation-boxes[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.translation-boxes[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
}

.translation-box {
    background: white;
    border: 3px solid #007bff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.2);
    transition: transform 0.3s;
}

.translation-box:hover {
    transform: translateY(-2px);
}

.dark-theme .translation-box {
    background: #2d2d2d;
    border-color: #4a9eff;
}

.translation-box .box-header {
    background: #007bff;
    color: white;
}

.dark-theme .translation-box .box-header {
    background: #4a9eff;
}

.translation-box .box-header h3 {
    color: white;
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

.translation-box .box-content {
    background: white;
    color: #333;
    font-weight: 500;
}

.dark-theme .translation-box .box-content {
    background: #2d2d2d;
    color: #ffffff;
}

/* 입력 언어 박스 스타일 */
.translation-box[data-is-input="True"] {
    border-color: #28a745;
}

.translation-box[data-is-input="True"] .box-header {
    background: #28a745;
}

.dark-theme .translation-box[data-is-input="True"] {
    border-color: #4caf50;
}

.dark-theme .translation-box[data-is-input="True"] .box-header {
    background: #4caf50;
}

/* 하단 컨트롤 */
.bottom-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: white;
    border-radius: 60px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    backdrop-filter: blur(10px);
}

.dark-theme .bottom-controls {
    background: #2d2d2d;
    border-color: #404040;
}

.left-controls {
    display: flex;
    gap: 15px;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.3s;
    min-width: 70px;
}

.control-btn:hover {
    background: #f8f9fa;
    color: #333;
    transform: translateY(-2px);
}

.dark-theme .control-btn {
    color: #ccc;
}

.dark-theme .control-btn:hover {
    background: #404040;
    color: #fff;
}

.control-btn.active {
    background: #007bff;
    color: white;
}

.control-btn .icon {
    font-size: 22px;
}

.control-btn .btn-text {
    font-size: 11px;
    font-weight: 600;
}

.share-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dark-theme .modal-content {
    background: #2d2d2d;
    color: white;
}

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

.dark-theme .modal-header {
    border-bottom-color: #404040;
}

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

.dark-theme .modal-header h3 {
    color: white;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close:hover {
    color: #666;
}

.dark-theme .close {
    color: #ccc;
}

.dark-theme .close:hover {
    color: white;
}

.modal-body {
    padding: 30px;
}

.mic-list {
    max-height: 200px;
    overflow-y: auto;
}

.mic-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.mic-item:hover {
    background: #f8f9fa;
}

.dark-theme .mic-item:hover {
    background: #404040;
}

.mic-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #eee;
}

.dark-theme .modal-footer {
    border-top-color: #404040;
}

.btn-cancel, .btn-confirm {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cancel {
    background: #f8f9fa;
    color: #666;
}

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

.btn-confirm {
    background: rgba(123, 60, 235, 1);
    color: white;
}

.btn-confirm:hover {
    background: rgba(79, 57, 246, 1);
    transform: translateY(-1px);
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .translation-boxes[data-count="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .translation-boxes[data-count="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .language-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .language-arrow {
        align-self: center;
        transform: rotate(90deg);
    }
    
    .translation-boxes[data-count="2"],
    .translation-boxes[data-count="3"],
    .translation-boxes[data-count="4"] {
        grid-template-columns: 1fr;
    }
    
    .bottom-controls {
        flex-direction: column;
        gap: 20px;
        left: 10px;
        right: 10px;
        border-radius: 25px;
        padding: 20px;
    }
    
    .left-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .translate-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .header-controls {
        justify-content: center;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .header h1 {
        font-size: 16px;
    }
    
    .header .subtitle {
        font-size: 22px;
    }
    
    .share-button-header {
        right: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .translate-container {
        padding: 15px;
    }
    
    .translation-area {
        margin-bottom: 180px;
    }
}

@media (max-width: 480px) {
    .box-content {
        font-size: 16px;
        padding: 20px;
    }
    
    .control-btn {
        min-width: 60px;
        padding: 10px 12px;
    }
    
    .control-btn .icon {
        font-size: 20px;
    }
    
    .control-btn .btn-text {
        font-size: 10px;
    }
    
    .share-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* 세미나/컨퍼런스 제목 입력창 크기 확대 */
.topic-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    min-height: 50px;
}

.topic-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

/* 로그인 페이지 추가 스타일 */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.link-btn {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.link-btn:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* 메인 페이지 스타일 */
.main-body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-container {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

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

.main-logo-image {
    width: auto;
    height: 120px;
    max-width: 640px;
    margin-bottom: 15px;
    object-fit: contain;
}

.main-title {
    font-size: 48px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.main-subtitle-ko {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 8px;
    font-weight: 600;
}

.main-subtitle-en {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-style: italic;
}

.main-features {
    margin-bottom: 40px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
}

.feature-icon {
    color: #27ae60;
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    min-width: 20px;
}

.feature-text {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.4;
}

.main-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.main-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: rgba(123, 60, 235, 1);
    color: white;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 60, 235, 0.3);
    background: rgba(79, 57, 246, 1);
}

.secondary-btn {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149, 165, 166, 0.3);
}

.main-footer {
    border-top: 1px solid #ecf0f1;
    padding-top: 20px;
}

.logout-link {
    color: #e74c3c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.logout-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

/* 미팅룸 생성 페이지 스타일 */
.create-meeting-body {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
}

.create-meeting-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
}

.meeting-form .form-section {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
}

/* 날짜/시간 입력 그룹 스타일 */
.datetime-inputs {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.date-input-group,
.time-input-group {
    flex: 1;
}

.sub-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .datetime-inputs {
        flex-direction: column;
        gap: 10px;
    }
    
    .date-input-group,
    .time-input-group {
        flex: none;
    }
}

.form-note {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.participant-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.participant-input {
    flex: 0 0 150px;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

.language-select {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

.start-meeting-btn {
    width: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-meeting-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

/* 실시간 번역 페이지 스타일 */
.realtime-translate-body {
    background: #f5f5f5;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.realtime-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.language-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.tab-btn.important {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.tab-btn.end-btn {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}
.tab-btn.end-btn:hover {
    background: #c82333;
    border-color: #c82333;
}
.conversation-btn[data-active="true"], .conversation-btn.active {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.translation-display {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 400px;
}

.language-line {
    display: flex;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.lang-code {
    font-weight: bold;
    color: #3498db;
    min-width: 50px;
    margin-right: 15px;
}

.text-content {
    flex: 1;
    line-height: 1.5;
    color: #2c3e50;
}

.language-info {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    padding: 15px;
}

/* 미팅 히스토리 페이지 스타일 */
.meeting-history-body, .conversation-body, .ai-summary-body {
    background: #f5f5f5;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.history-container, .conversation-container, .summary-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.meeting-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

.meeting-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.meeting-details p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.detail-label {
    font-weight: 600;
    color: #34495e;
    margin-right: 10px;
}

.meeting-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.primary-action {
    background: rgba(123, 60, 235, 1);
    color: white;
}

.primary-action:hover {
    background: rgba(79, 57, 246, 1);
}

.secondary-action {
    background: #95a5a6;
    color: white;
}

.secondary-action:hover {
    background: #7f8c8d;
}

.action-btn.secondary {
    background: #95a5a6;
    color: white;
}

.action-btn.primary {
    background: rgba(123, 60, 235, 1);
    color: white;
}

/* 대화 내용 페이지 스타일 */
.conversation-display, .summary-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.conversation-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.conversation-line {
    display: flex;
    margin-bottom: 8px;
    padding: 8px 0;
}

.conversation-actions, .summary-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

/* AI 요약 페이지 스타일 */
.summary-title {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.summary-section {
    margin-bottom: 30px;
}

.section-title {
    color: #34495e;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.summary-item {
    display: flex;
    margin-bottom: 12px;
    padding: 8px 0;
}

.item-number {
    color: #3498db;
    font-weight: bold;
    margin-right: 10px;
    min-width: 25px;
}

.item-content {
    flex: 1;
    line-height: 1.5;
    color: #2c3e50;
}

.discussion-list, .action-list {
    padding-left: 20px;
}

.discussion-list li, .action-list li {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #2c3e50;
}

.summary-text p {
    line-height: 1.6;
    color: #2c3e50;
    text-align: justify;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .main-buttons {
        flex-direction: column;
    }
    
    .participant-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .participant-input {
        flex: none;
        width: 100%;
    }
    
    .meeting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .meeting-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .language-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .conversation-actions, .summary-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* AI Summary Page */
.summary-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.summary-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.summary-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.summary-section ul {
    list-style-type: disc;
    margin-left: 20px;
}

.summary-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* 비밀번호 찾기 페이지 */
.info-message {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.info-message p {
    margin: 0;
    text-align: center;
}

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

.modal-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
    text-align: center;
}

.modal-body {
    padding: 20px;
    text-align: center;
    line-height: 1.6;
}

.modal-body p {
    margin: 0 0 10px 0;
    color: #555;
}

.modal-footer {
    padding: 10px 20px 20px;
    text-align: center;
}

.modal-btn {
    background-color: #7b3ceb;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.modal-btn:hover {
    background-color: #4f39f6;
    box-shadow: 0 4px 12px rgba(123, 60, 235, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .login-container {
        padding: 20px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .main-container {
        padding: 10px;
    }
    
    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .meeting-item {
        flex-direction: column;
        text-align: center;
    }
    
    .meeting-actions {
        margin-top: 15px;
        justify-content: center;
    }
    
    .modal-content {
        margin: 0 10px;
    }
    
    /* 실시간 번역 페이지 모바일 최적화 */
    .translate-container {
        height: calc(100vh - 120px);
        margin: 80px 10px 0;
        border-radius: 0;
    }
    
    .chat-area {
        padding: 15px 15px 120px 15px;
    }
    
    .input-area {
        bottom: 60px;
        width: calc(100% - 20px);
        left: 50%;
        transform: translateX(-50%);
        padding: 15px;
        border-radius: 0;
    }
    
    .input-wrapper {
        padding: 8px 15px 8px 15px;
    }
    
    .message-input {
        font-size: 16px; /* iOS 줌 방지 */
    }
    
    .mic-button, .check-button, .send-button, .keyboard-button {
        width: 36px;
        height: 36px;
    }
    
    .mic-icon, .check-icon, .send-icon, .keyboard-icon {
        width: 18px;
        height: 18px;
    }
    
    .bottom-nav {
        padding: 10px 15px;
        left: 10px;
        right: 10px;
        border-radius: 10px 10px 0 0;
        margin: 0;
        max-width: none;
    }
    
    .share-button-container {
        right: 15px;
        top: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .share-button {
        right: 15px;
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .viewer-badge-container {
        left: 10px;
        top: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .viewer-badge {
        left: 15px;
        padding: 6px 15px;
        font-size: 12px;
    }
    
    .chat-message {
        margin-bottom: 15px;
        padding: 12px 15px;
    }
    
    .user-message, .translation-message {
        max-width: 85%;
    }
}

/* 태블릿용 반응형 */
@media (max-width: 1024px) and (min-width: 769px) {
    .translate-container {
        margin: 90px 20px 0;
        height: calc(100vh - 140px);
    }
    
    .input-area {
        width: calc(100% - 40px);
        left: 50%;
        transform: translateX(-50%);
    }
    
    .bottom-nav {
        left: 20px;
        right: 20px;
        margin: 0;
        max-width: none;
        border-radius: 10px 10px 0 0;
    }
}

/* 실시간 번역 페이지 - ChatGPT 스타일 */
.translate-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 160px);
    max-width: 1200px;
    margin: 100px auto 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

/* 채팅 영역 */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 140px 20px;
    background: #f7f7f8;
    min-height: 0;
    position: relative;
}

.welcome-message {
    text-align: center;
    color: #666;
    padding: 20px 20px 40px 20px;
}

.welcome-message p {
    margin: 10px 0;
}

.lang-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin: 0 5px;
}

.meeting-context {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    text-align: left;
}

.meeting-context p {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.4;
}

.meeting-context strong {
    color: #2c3e50;
}

.keyword-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin: 0 3px;
}

/* 채팅 메시지 */
.chat-message {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-message {
    margin-left: auto;
    margin-right: 0;
    max-width: 70%;
    background: #e3f2fd;
}

.translation-message {
    margin-left: 0;
    margin-right: auto;
    max-width: 70%;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.speaker {
    font-weight: bold;
}

.message-content {
    color: #333;
    line-height: 1.5;
}

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

.translation-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 5px;
    word-break: break-word;
}

.lang-label {
    font-weight: bold;
    color: #3498db;
    min-width: 120px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 모바일에서 언어 레이블 조정 */
@media (max-width: 768px) {
    .lang-label {
        min-width: 100px;
        font-size: 13px;
    }
    
    .translation-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .translation-item .lang-label {
        min-width: auto;
        margin-bottom: 2px;
    }
}

.detected-lang {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-left: 10px;
}

.no-translation {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* 입력 영역 */
.input-area {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1160px;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    background: white;
    box-shadow: none;
    z-index: 999;
    border-radius: 0;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f7f8;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 5px 10px 5px 20px;
    transition: border-color 0.3s;
}

.input-wrapper:focus-within {
    border-color: #3498db;
}

.message-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
}

.message-input::placeholder {
    color: #999;
}

/* 버튼 스타일 */
.mic-button, .stop-button, .send-button, .check-button, .keyboard-button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.mic-button {
    background: #f0f0f0;
}

.mic-button:hover {
    background: #e0e0e0;
}

.stop-button {
    background: #f44336;
    animation: pulse 1.5s infinite;
}

.check-button {
    background: #4CAF50;
}

.check-button:hover {
    background: #45a049;
}

.keyboard-button {
    background: #f0f0f0;
}

.keyboard-button:hover {
    background: #e0e0e0;
}

.keyboard-button.active {
    background: #3498db;
}

.keyboard-button.active .keyboard-icon {
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

.send-button {
    background: #3498db;
}

.send-button:hover:not(:disabled) {
    background: #2980b9;
}

.send-button:disabled {
    background: #e0e0e0;
    cursor: not-allowed;
}

.mic-icon, .stop-icon, .send-icon, .check-icon, .keyboard-icon {
    width: 20px;
    height: 20px;
}

.mic-icon, .send-icon, .keyboard-icon {
    color: #666;
}

.stop-icon, .check-icon {
    color: white;
}

.send-button:not(:disabled) .send-icon {
    color: white;
}

/* 녹음 상태 표시 */
.recording-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: #f44336;
}

.recording-dot {
    width: 8px;
    height: 8px;
    background: #f44336;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* 공유 버튼 (컨테이너 내부) */
.share-button-container {
    position: absolute;
    right: 25px;
    top: 25px;
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.3s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.share-button-container:hover {
    background-color: #2980b9;
    box-shadow: 0 2px 12px rgba(52, 152, 219, 0.4);
}

/* 기존 헤더용 공유 버튼 (사용 안함) */
.share-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.share-button:hover {
    background-color: #2980b9;
}

.share-icon {
    width: 18px;
    height: 18px;
}

/* 뷰어 모드 (컨테이너 내부) */
.viewer-badge-container {
    position: absolute;
    left: 15px;
    top: 15px;
    background: #27ae60;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* 기존 헤더용 뷰어 배지 (사용 안함) */
.viewer-badge {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #27ae60;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.eye-icon {
    width: 18px;
    height: 18px;
}

.viewer-info {
    background: #f8f9fa;
    padding: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
}

.connection-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    text-align: center;
}

/* 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
}

.bottom-nav .nav-btn {
    padding: 10px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.bottom-nav .nav-btn:hover {
    background-color: #2980b9;
} 

/* -------- 실시간 번역 채팅 형태 -------- */
.utterance-block {
    margin: 12px 0;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
}
.dark-theme .utterance-block {
    background: #2d2d2d;
    border-color: #444;
}
.utterance-block .language-line { margin: 3px 0; }
.utterance-block .lang-code { font-weight: 600; margin-right:4px; } 

/* -------- 텍스트 입력 박스 -------- */
.text-input-box {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    border-top: 2px solid #ddd;
    padding: 12px;
    z-index: 100;
    backdrop-filter: blur(5px);
}
.dark-theme .text-input-box {
    background: rgba(45,45,45,0.95);
    border-top-color: #555;
}
.input-container {
    display: flex;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
}
.input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}
/* textarea도 동일 스타일 적용 */
.input-container textarea {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    resize: none;
    line-height: 1.5;
    max-height: 120px;
}
.input-container input:focus {
    border-color: #007bff;
}
.input-container button {
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}
.input-container button:hover {
    background: #0056b3;
} 