/* 나의 작업 페이지 스타일 - 데스크탑 */

/* 페이지 배경 */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-attachment: fixed;
}

.workroom-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 48px;
    min-height: calc(100vh - 70px);
}

/* 헤더 영역 */
.workroom-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.workroom-header-left {
    flex: 1;
}

.workroom-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.workroom-title i {
    color: #4f46e5;
    font-size: 28px;
}

.workroom-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

.workroom-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.stat-label {
    font-size: 16px;
    color: #64748b;
    margin-top: 4px;
}

/* 툴바 */
.workroom-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #475569;
    font-weight: 500;
}

.select-all-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4f46e5;
}

.record-count {
    font-size: 15px;
    color: #64748b;
    padding-left: 24px;
    border-left: 1px solid #e2e8f0;
}

.record-count strong {
    color: #4f46e5;
    font-weight: 600;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn.delete-btn {
    background: white;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.toolbar-btn.delete-btn:hover {
    background: #fef2f2;
    border-color: #dc2626;
}

.toolbar-btn.export-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
}

.toolbar-btn.export-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

/* 컨텐츠 영역 */
.workroom-content {
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-height: 500px;
}

/* 로딩 상태 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    color: #64748b;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-state p {
    font-size: 16px;
    color: #64748b;
}

/* 빈 상태 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px;
    text-align: center;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.empty-icon i {
    font-size: 48px;
    color: #94a3b8;
}

.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.empty-state p {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 32px 0;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.start-btn:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

/* 기록 테이블 헤더 */
.records-table-header {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 100px;
    padding: 16px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 기록 목록 */
.records-list {
    padding: 0;
}

/* 기록 아이템 */
.record-item {
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

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

.record-item:hover {
    background: #fafbfc;
}

.record-header {
    display: grid;
    grid-template-columns: 50px 2fr 1fr 1fr 1fr 100px;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.record-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #4f46e5;
}

.record-title-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.record-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-icon i {
    font-size: 18px;
    color: #4f46e5;
}

.record-title-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.record-title-info span {
    font-size: 13px;
    color: #64748b;
}

.record-cell {
    font-size: 14px;
    color: #475569;
}

.record-cell i {
    margin-right: 6px;
    color: #94a3b8;
}

.record-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #64748b;
    transition: all 0.2s ease;
    margin-left: auto;
}

.record-toggle:hover {
    background: #e2e8f0;
}

.record-toggle i {
    transition: transform 0.2s ease;
    margin: 0;
}

.record-item.expanded .record-toggle i {
    transform: rotate(180deg);
}

/* 기록 내용 */
.record-content {
    display: none;
    padding: 0 24px 24px 24px;
    background: #fafbfc;
    border-top: 1px solid #e2e8f0;
}

.record-item.expanded .record-content {
    display: block;
}

/* 언어 탭 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.language-tabs {
    display: flex;
    gap: 8px;
}

.language-tab {
    padding: 10px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-tab:hover {
    border-color: #c7d2fe;
    background: #f5f3ff;
}

.language-tab.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

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

.content-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.content-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
}

/* 번역 텍스트 */
.translation-text {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    font-size: 15px;
    line-height: 2;
    color: #334155;
    max-height: 400px;
    overflow-y: auto;
}

.translation-sentence {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.translation-sentence:last-child {
    border-bottom: none;
}

.sentence-number {
    min-width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}

.sentence-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sentence-time {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    font-family: monospace;
}

.sentence-text {
    font-size: 15px;
    color: #1e293b;
    line-height: 1.6;
}

.sentence-text.original-text {
    font-weight: 500;
}

.sentence-text.translated-text {
    font-weight: 400;
    color: #475569;
}

/* 스크롤바 스타일 */
.translation-text::-webkit-scrollbar {
    width: 8px;
}

.translation-text::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.translation-text::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.translation-text::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 반응형 */
@media (max-width: 1200px) {
    .workroom-container {
        padding: 24px 32px;
    }
    
    .records-table-header,
    .record-header {
        grid-template-columns: 50px 2fr 1fr 1fr 80px;
    }
    
    .records-table-header > div:nth-child(5),
    .record-header .record-cell:nth-child(5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .workroom-container {
        padding: 16px;
    }
    
    .workroom-header {
        flex-direction: column;
        gap: 24px;
    }
    
    .workroom-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .workroom-title {
        font-size: 24px;
    }
    
    .workroom-toolbar {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .toolbar-left,
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .records-table-header {
        display: none;
    }
    
    .record-header {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }
    
    .record-title-cell {
        width: calc(100% - 70px);
    }
}

/* 토스트 메시지 */
.toast-message {
    position: fixed;
    bottom: 32px;
    right: 24px;
    transform: translateY(20px);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
    padding: 16px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
    min-width: 200px;
    max-width: 400px;
}

.toast-message.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toast-message .toast-icon {
    font-size: 20px;
    display: none;
}

.toast-message.success .toast-icon.success {
    display: inline-block;
    color: #4ade80;
}

.toast-message.warning .toast-icon.warning {
    display: inline-block;
    color: #fbbf24;
}

.toast-message.error .toast-icon.error {
    display: inline-block;
    color: #f87171;
}

.toast-text {
    flex: 1;
}

/* 페이징 컨트롤 스타일 */
.pagination-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding: 24px 0;
    border-top: 1px solid #e2e8f0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pagination-btn:hover:not(.disabled) {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

.pagination-btn.disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.pagination-btn i {
    font-size: 12px;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #475569;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-number:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.pagination-number.active {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-color: #4f46e5;
    color: #fff;
    cursor: default;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pagination-number.active:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.pagination-ellipsis {
    padding: 0 8px;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
}

.pagination-info {
    color: #64748b;
    font-size: 15px;
    font-weight: 500;
    margin-left: auto;
    margin-right: 24px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        flex: none;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .pagination-btn i {
        font-size: 11px;
    }
    
    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .pagination-info {
        font-size: 14px;
        margin-left: 0;
        text-align: center;
    }
}

/* 삭제 확인 모달 스타일 */
.delete-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.delete-confirm-modal.show {
    opacity: 1;
    visibility: visible;
}

.delete-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.delete-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.delete-confirm-modal.show .delete-modal-content {
    transform: scale(1);
}

.delete-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 24px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.delete-modal-icon {
    font-size: 24px;
    color: #f59e0b;
}

.delete-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.delete-modal-body {
    padding: 24px;
}

.delete-modal-body p {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
}

.delete-modal-body p:last-child {
    margin-bottom: 0;
}

.delete-modal-body strong {
    color: #dc2626;
    font-weight: 700;
}

.delete-modal-warning {
    font-size: 14px;
    color: #f59e0b !important;
    font-weight: 500;
}

.delete-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px 24px 24px;
    border-top: 1px solid #e2e8f0;
    justify-content: flex-end;
}

.delete-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.delete-modal-btn.cancel-btn {
    background: #f1f5f9;
    color: #475569;
}

.delete-modal-btn.cancel-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.delete-modal-btn.confirm-btn {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

.delete-modal-btn.confirm-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.delete-modal-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .delete-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .delete-modal-header {
        padding: 20px 20px 16px;
    }
    
    .delete-modal-header h3 {
        font-size: 18px;
    }
    
    .delete-modal-body {
        padding: 20px;
    }
    
    .delete-modal-body p {
        font-size: 15px;
    }
    
    .delete-modal-footer {
        padding: 16px 20px 20px;
        flex-direction: column;
    }
    
    .delete-modal-btn {
        width: 100%;
    }
}

/* ============================================
   다크 모드 스타일
   ============================================ */

body.dark-mode {
    background: rgb(32, 33, 37) !important;
    background-attachment: fixed;
}

body.dark-mode .workroom-container {
    color: #f1f5f9;
}

/* 헤더 영역 */
body.dark-mode .workroom-header {
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

body.dark-mode .workroom-title {
    color: #f1f5f9;
}

body.dark-mode .workroom-title i {
    color: #818cf8;
}

body.dark-mode .workroom-subtitle {
    color: #94a3b8;
}

/* 통계 아이템 */
body.dark-mode .stat-item {
    background: rgb(42, 42, 45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .stat-value {
    color: #818cf8;
}

body.dark-mode .stat-label {
    color: #94a3b8;
}

/* 툴바 */
body.dark-mode .workroom-toolbar {
    background: rgb(42, 42, 45);
    border-bottom-color: rgba(148, 163, 184, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .select-all-label {
    color: #cbd5e1;
}

body.dark-mode .record-count {
    color: #94a3b8;
    border-left-color: rgba(148, 163, 184, 0.1);
}

body.dark-mode .record-count strong {
    color: #818cf8;
}

body.dark-mode .toolbar-btn.delete-btn {
    background: rgb(42, 42, 45);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

body.dark-mode .toolbar-btn.delete-btn:hover {
    background: rgba(248, 113, 113, 0.1);
    border-color: #f87171;
}

body.dark-mode .toolbar-btn.export-btn {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

body.dark-mode .toolbar-btn.export-btn:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
}

/* 컨텐츠 영역 */
body.dark-mode .workroom-content {
    background: rgb(42 42 45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* 로딩 상태 */
body.dark-mode .loading-state {
    color: #94a3b8;
}

body.dark-mode .loading-spinner {
    border-color: rgba(148, 163, 184, 0.2);
    border-top-color: #818cf8;
}

body.dark-mode .loading-state p {
    color: #94a3b8;
}

/* 빈 상태 */
body.dark-mode .empty-icon {
    background: linear-gradient(135deg, rgb(42, 42, 45), #374151);
}

body.dark-mode .empty-icon i {
    color: #64748b;
}

body.dark-mode .empty-state h3 {
    color: #f1f5f9;
}

body.dark-mode .empty-state p {
    color: #94a3b8;
}

body.dark-mode .start-btn {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
}

body.dark-mode .start-btn:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
}

/* 기록 테이블 헤더 */
body.dark-mode .records-table-header {
    background: rgb(42, 42, 45);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

/* 기록 아이템 */
body.dark-mode .record-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
    background: transparent;
}

body.dark-mode .record-item:hover {
    background: rgb(42, 42, 45);
}

body.dark-mode .record-header {
    color: #e2e8f0;
    background: transparent;
}

body.dark-mode .record-icon {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2), rgba(100, 116, 139, 0.2));
}

body.dark-mode .record-icon i {
    color: #94a3b8;
}

body.dark-mode .record-title-info h3 {
    color: #e2e8f0;
}

body.dark-mode .record-title-info span {
    color: #94a3b8;
}

body.dark-mode .record-cell {
    color: #AFAFAF;
}

body.dark-mode .record-cell i {
    color: #AFAFAF;
}

body.dark-mode .record-toggle {
    color: #94a3b8;
}

body.dark-mode .record-toggle:hover {
    background: rgb(42, 42, 45);
}

/* 기록 내용 */
body.dark-mode .record-content {
    background: rgb(42, 42, 45);
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* 언어 탭 */
body.dark-mode .content-header {
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

body.dark-mode .language-tab {
    background: rgb(42, 42, 45);
    border-color: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
}

body.dark-mode .language-tab:hover {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

body.dark-mode .language-tab.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

body.dark-mode .content-btn {
    background: rgb(42, 42, 45);
    border-color: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
}

body.dark-mode .content-btn:hover {
    border-color: #4f46e5;
    color: #818cf8;
}

/* 번역 텍스트 */
body.dark-mode .translation-text {
    background: rgb(42, 42, 45);
    border-color: rgba(148, 163, 184, 0.1);
    color: #f1f5f9;
}

body.dark-mode .translation-sentence {
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

body.dark-mode .sentence-number {
    background: #374151;
    color: #94a3b8;
}

body.dark-mode .sentence-time {
    color: #94a3b8;
}

body.dark-mode .sentence-text {
    color: #f1f5f9;
}

body.dark-mode .sentence-text.translated-text {
    color: #cbd5e1;
}

/* 스크롤바 스타일 */
body.dark-mode .translation-text::-webkit-scrollbar-track {
    background: #374151;
}

body.dark-mode .translation-text::-webkit-scrollbar-thumb {
    background: #64748b;
}

body.dark-mode .translation-text::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 페이징 컨트롤 */
body.dark-mode .pagination-container {
    border-top-color: rgba(148, 163, 184, 0.1);
}

body.dark-mode .pagination-btn {
    background: rgb(42, 42, 45);
    border-color: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
}

body.dark-mode .pagination-btn:hover:not(.disabled) {
    background: #374151;
    border-color: #4f46e5;
    color: #818cf8;
}

body.dark-mode .pagination-btn.disabled {
    background: #374151;
    opacity: 0.4;
}

body.dark-mode .pagination-number {
    background: rgb(42, 42, 45);
    border-color: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
}

body.dark-mode .pagination-number:hover {
    background: #374151;
    border-color: #4f46e5;
    color: #818cf8;
}

body.dark-mode .pagination-number.active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: #4f46e5;
    color: white;
}

body.dark-mode .pagination-number.active:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
}

body.dark-mode .pagination-ellipsis {
    color: #64748b;
}

body.dark-mode .pagination-info {
    color: #94a3b8;
}

/* 삭제 확인 모달 */
body.dark-mode .delete-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .delete-modal-content {
    background: rgb(42, 42, 45);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-mode .delete-modal-header {
    border-bottom-color: rgba(148, 163, 184, 0.1);
}

body.dark-mode .delete-modal-header h3 {
    color: #f1f5f9;
}

body.dark-mode .delete-modal-body p {
    color: #cbd5e1;
}

body.dark-mode .delete-modal-body strong {
    color: #f87171;
}

body.dark-mode .delete-modal-warning {
    color: #fbbf24 !important;
}

body.dark-mode .delete-modal-footer {
    border-top-color: rgba(148, 163, 184, 0.1);
}

body.dark-mode .delete-modal-btn.cancel-btn {
    background: #374151;
    color: #cbd5e1;
}

body.dark-mode .delete-modal-btn.cancel-btn:hover {
    background: #4b5563;
    color: #f1f5f9;
}

body.dark-mode .delete-modal-btn.confirm-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

body.dark-mode .delete-modal-btn.confirm-btn:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

/* 토스트 메시지 */
body.dark-mode .toast-message {
    background: linear-gradient(135deg, rgb(42, 42, 45), #374151);
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
