/* storage.jsp 페이지에서 스크롤 활성화 */
html {
    overflow: auto !important;
    height: auto !important;
}

/* 페이지 배경 흰색으로 설정 */
body {
    background: #FFFFFF !important;
    background-attachment: fixed !important;
    overflow: auto !important;
    height: auto !important;
}

/* 메인 컨테이너 배경 */
.main-container {
    background: #FFFFFF;
    min-height: 100vh;
}

/* 스토리지 컨테이너 배경 */
.storage-container {
    background: #FFFFFF;
}

/* 헤더 스타일 - caption.css 참고 */
.lx_app_wrap {
    overflow: visible;
    height: auto !important;
    min-height: 100vh;
}

.lx_app_header {
    overflow: visible;
    position: relative;
}

.lx_app_header.sticky {
    z-index: 1000;
}

.user-info-area {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 130px;
    z-index: 1001;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1001;
}

/* 메가 메뉴 스타일 - mega-menu.css 참고 */
.more-menu-btn {
    position: relative;
}

.more-menu-dropdown {
    position: fixed;
    z-index: 1001;
}

.more-menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    z-index: 99999;
    position: fixed;
}

/* 헤더 요소들이 드롭다운을 가리지 않도록 */
.header-right {
    position: relative;
    overflow: visible;
}

.dark-mode-toggle-wrapper {
    position: relative;
    overflow: visible;
}

.user-info-area {
    position: relative;
    overflow: visible;
}

.storage-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
/* 저장공간 관리 헤더 (상단 큰 제목) */
.storage-header {
    margin-bottom: 24px;
    text-align: center;
}

.storage-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #1a1a2e;
    margin: 0;
}

/* 다크모드 - 제목 */
body.dark-mode .storage-title {
    color: #f1f5f9;
}
.expiry-banner {
    background: #FEF2F2;
    border: 2px solid #DC2626;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.expiry-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.expiry-banner-icon {
    font-size: 28px;
    color: #DC2626;
    flex-shrink: 0;
}

.expiry-banner-text {
    font-size: 16px;
    font-weight: 600;
    color: #991B1B;
    margin-bottom: 4px;
}

.expiry-banner-hint {
    font-size: 14px;
    color: #7F1D1D;
    opacity: 0.9;
    margin-top: 4px;
}

.expiry-banner-close {
    background: rgba(220, 38, 38, 0.1);
    border: none;
    color: #DC2626;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.expiry-banner-close:hover {
    background: rgba(220, 38, 38, 0.2);
}
.storage-info-text {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.storage-info-icon {
    color: #1E3A8A;
    font-size: 14px;
    flex-shrink: 0;
}
.storage-extension-section {
    display: none;
    background: #F9FAFB;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #E5E7EB;
}
.storage-extension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.storage-extension-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.storage-extension-desc {
    font-size: 14px;
    color: #666;
}

/* 다크모드 - 저장공간 정보 */
body.dark-mode .storage-info-text {
    color: #94a3b8;
}
body.dark-mode .storage-info-icon {
    color: #60A5FA;
}
body.dark-mode .storage-extension-section {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
}
body.dark-mode .storage-extension-title {
    color: #f1f5f9;
}
body.dark-mode .storage-extension-desc {
    color: #94a3b8;
}
.storage-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.storage-option-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.storage-option-card:hover {
    border-color: #1E3A8A;
}
.storage-option-name {
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 8px;
}
.storage-option-size {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}
.storage-option-period {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}
.storage-option-price {
    font-size: 16px;
    font-weight: 600;
    color: #1E3A8A;
}

/* 다크모드 - 저장공간 옵션 카드 */
body.dark-mode .storage-option-card {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
}
body.dark-mode .storage-option-card:hover {
    border-color: #3B82F6;
    background: #1e293b;
}
body.dark-mode .storage-option-name {
    color: #60A5FA;
}
body.dark-mode .storage-option-size {
    color: #f1f5f9;
}
body.dark-mode .storage-option-period {
    color: #94a3b8;
}
body.dark-mode .storage-option-price {
    color: #60A5FA;
}
.storage-usage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.storage-info-text {
    margin-left: auto;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    background: #ffffff;
    margin-bottom: 0;
}
.section-title-above {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 16px;
}

/* 저장공간 대시보드 기본 스타일 */
.storage-dashboard {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

/* 저장공간 대시보드 오버라이드 */
.storage-dashboard {
    padding: 24px !important;
}

.storage-dashboard .dashboard-header {
    margin-bottom: 16px;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
}

.storage-dashboard .storage-content {
    padding-left: 0;
    padding-right: 0;
}

.storage-stats {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.stat-item:first-child {
    margin-left: 0 !important;
}

.dashboard-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dashboard-title i {
    color: #1E3A8A;
    font-size: 20px;
}

.storage-dashboard .storage-content {
    padding-left: 0;
    padding-right: 0;
}

.storage-info {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.storage-usage-text {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
}

.storage-usage-text .storage-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.storage-label {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.storage-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.storage-progress-container {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: nowrap;
}

.storage-progress-container .storage-info-text {
    margin-left: auto;
    margin-top: 0;
    order: 3;
}

.storage-progress-container .storage-progress-bar {
    order: 1;
    flex: 1;
}

.storage-progress-container .storage-percentage {
    order: 2;
}

.storage-progress-bar {
    flex: 1;
    min-width: 200px;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
}

.storage-progress-fill {
    height: 100%;
    background: #1E3A8A;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.storage-percentage {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 통계 카드 스타일 */
.storage-stats {
    display: flex;
    gap: 16px;
    margin-left: 0;
    padding-left: 0;
}

.stat-item {
    flex: 1;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.stat-item:hover {
    border-color: #1E3A8A;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.stat-item:first-child {
    margin-left: 0;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 작업 이력 섹션 */
.videos-section {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-top: 24px;
}

/* 영상 섹션 오버라이드 */
.videos-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

.videos-section .section-title-above {
    padding-left: 0 !important;
    margin-bottom: 16px !important;
    color: #333333;
}

.videos-section .section-header {
    padding-left: 0 !important;
    margin-bottom: 0 !important;
}

.videos-section .section-header {
    padding-right: 0 !important;
}

.videos-section .filter-controls {
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-end !important;
    display: flex !important;
}

.videos-section .video-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 24px !important;
    justify-items: stretch;
}

.videos-section .video-grid .video-card {
    max-width: 100%;
}

.filter-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.filter-btn {
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #F9FAFB;
    border-color: #1E3A8A;
    color: #1E3A8A;
}

.filter-btn.active {
    background: #1E3A8A;
    border-color: #1E3A8A;
    color: #ffffff;
}

/* 영상 카드 그리드 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
    padding-left: 0;
    padding-right: 0;
    min-height: 236px;
}

.video-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.video-card:hover {
    border-color: #1E3A8A;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

/* 자막 생성 중일 때 클릭 막기 */
.video-card.processing {
    cursor: not-allowed;
    pointer-events: none;
}

.video-card.processing .video-card-progress-overlay {
    pointer-events: auto;
    cursor: default;
}

.video-card .video-grid {
    max-width: 100%;
}

.video-card-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 비율 */
    background: #000;
    overflow: hidden;
}

.video-card-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    visibility: visible;
    opacity: 1;
    background: #000;
}

.video-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-card-duration {
    color: white;
    font-size: 12px;
    font-weight: 500;
}

.video-card-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.video-card-status.completed {
    background: #10B981;
    color: white;
}

.video-card-status.processing {
    background: #F59E0B;
    color: white;
}

.video-card-status.pending {
    background: #6B7280;
    color: white;
}

.video-card-content {
    padding: 16px;
    min-height: 180px;
    background: inherit;
}

.video-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-card-description {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 12px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-card-progress {
    margin: 12px 0;
    padding: 12px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.video-card-progress-text {
    font-size: 13px;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 8px;
    text-align: center;
}

.video-card-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(30, 58, 138, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.video-card-progress-fill {
    height: 100%;
    background: #1E3A8A;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.video-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #9CA3AF;
}

.video-card-date,
.video-card-size {
    margin: 0;
}

/* video-card 액션 버튼 */
.video-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid #E5E7EB;
}

.video-card-download-btn,
.video-card-delete-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.video-card-download-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #ffffff;
}

.video-card-download-btn:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.video-card-delete-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.video-card-delete-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.video-card-download-btn i,
.video-card-delete-btn i {
    font-size: 12px;
}

/* 다크모드 - video-card 액션 버튼 */
body.dark-mode .video-card-progress {
    background: rgba(30, 58, 138, 0.15);
    border-color: rgba(30, 58, 138, 0.3);
}

body.dark-mode .video-card-progress-text {
    color: #f1f5f9;
}

body.dark-mode .video-card-progress-bar {
    background: rgba(30, 58, 138, 0.2);
}

body.dark-mode .video-card-progress-fill {
    background: #6366F1;
}

body.dark-mode .video-card-actions {
    border-top-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .video-card-download-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #ffffff;
}

body.dark-mode .video-card-download-btn:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
}

body.dark-mode .video-card-delete-btn {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border-color: rgba(59, 130, 246, 0.3);
}

body.dark-mode .video-card-delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #FCA5A5;
    border-color: rgba(239, 68, 68, 0.3);
}
.section-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    padding: 0 !important;
}
.sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #1E3A8A;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.sort-btn:hover {
    background: #172d6f;
}
.sort-btn i {
    font-size: 12px;
}
.sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}
.sort-dropdown.active {
    display: block;
}
.sort-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    color: #333;
    font-size: 14px;
}
.sort-dropdown-item:hover {
    background: #F9FAFB;
}
.sort-dropdown-item i {
    color: #1E3A8A;
    font-size: 12px;
}
.sort-dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 0;
}
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #000000;
    border-radius: 12px;
    min-width: 200px;
}
.search-bar i {
    color: #6B7280;
    font-size: 14px;
}
.search-bar input {
    border: none !important;
    outline: none !important;
    font-size: 14px;
    color: #333;
    flex: 1;
    min-width: 0;
    box-shadow: none !important;
}

.search-bar input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.search-bar input::placeholder {
    color: #9CA3AF;
}

/* 필터 버튼 */
.filter-btn {
    border-color: #000000 !important;
}

.filter-btn:hover {
    border-color: #000000 !important;
}

.filter-btn.active {
    border-color: #000000 !important;
}

/* 밝기 모드 - 영상 카드 제목 */
body:not(.dark-mode) .video-title {
    color: #000000 !important;
}

body:not(.dark-mode) .video-title:hover {
    color: #000000 !important;
}

/* 다크모드 스타일 */
body.dark-mode .section-header {
    background: transparent;
}

body.dark-mode .section-title-above {
    color: #ffffff !important;
}

body.dark-mode .videos-section .section-title-above {
    color: #ffffff !important;
}

body.dark-mode .section-header-right {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

body.dark-mode .sort-btn {
    background: #1E3A8A !important;
    color: #ffffff !important;
}

body.dark-mode .sort-btn:hover {
    background: #172d6f !important;
}

body.dark-mode .search-bar {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body.dark-mode .search-bar i {
    color: #b0b0b0 !important;
}

body.dark-mode .search-bar input {
    background: transparent !important;
    color: #e5e5e5 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

body.dark-mode .search-bar input:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

body.dark-mode .search-bar input::placeholder {
    color: #999 !important;
}

body.dark-mode .filter-controls {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

body.dark-mode .filter-btn {
    background: rgba(26, 26, 46, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #b0b0b0 !important;
}

body.dark-mode .filter-btn:hover {
    background: rgba(30, 58, 138, 0.2) !important;
    border-color: #1E3A8A !important;
    color: #e5e5e5 !important;
}

body.dark-mode .filter-btn.active {
    background: #1E3A8A !important;
    border-color: #1E3A8A !important;
    color: #ffffff !important;
}

body.dark-mode .sort-dropdown {
    background: rgba(26, 26, 46, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body.dark-mode .sort-dropdown-item {
    color: #e5e5e5 !important;
}

body.dark-mode .sort-dropdown-item:hover {
    background: rgba(30, 58, 138, 0.2) !important;
}

body.dark-mode .sort-dropdown-item i {
    color: #ffffff !important;
}

/* 선택된 항목 스타일 제거 (흰색 배경 방지) */
body.dark-mode .sort-dropdown-item[style*="background"] {
    background: rgba(30, 58, 138, 0.3) !important;
    color: #e5e5e5 !important;
}

body.dark-mode .sort-dropdown-divider {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* 다크모드 - 저장공간 대시보드 */
body:not(.dark-mode) .storage-dashboard {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.dark-mode .storage-dashboard {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    padding: 24px !important;
}

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

body.dark-mode .dashboard-title i {
    color: #3b82f6;
}

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

body.dark-mode .storage-value {
    color: #f1f5f9;
}

body.dark-mode .storage-progress-bar {
    background: rgba(148, 163, 184, 0.2);
}

body.dark-mode .storage-progress-fill {
    background: #3b82f6;
}

body.dark-mode .storage-percentage {
    color: #94a3b8;
}

/* 다크모드 - 통계 카드 */
body.dark-mode .stat-item {
    background: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

body.dark-mode .stat-item:hover {
    background: #334155;
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

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

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

body.dark-mode .stat-icon {
    opacity: 0.9;
}

/* 다크모드 - 작업 이력 섹션 */
body.dark-mode .videos-section {
    background: #3a3a3a;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

body.dark-mode .video-card {
    background: #2A2A2D;
    border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .video-card-content {
    background: #2A2A2D;
}

body.dark-mode .video-card:hover {
    border-color: #3B82F6;
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

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

body.dark-mode .video-meta {
    color: #94a3b8;
}

body.dark-mode .video-date {
    color: #94a3b8;
}

/* 밝기 모드 - 삭제 버튼 */
.batch-btn-delete {
    background: #ffffff !important;
    color: #EF4444 !important;
    border-color: #EF4444 !important;
}

.batch-btn-delete:hover {
    background: #FEF2F2 !important;
    border-color: #DC2626 !important;
    color: #DC2626 !important;
}

/* 다크모드 - 배치 작업 */
body.dark-mode .batch-actions {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode #selected-count {
    color: #f1f5f9;
}

body.dark-mode .batch-btn {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
}

body.dark-mode .batch-btn:hover {
    background: #334155;
    border-color: #3B82F6;
}

/* 다크모드 - 만료 배너 */
body.dark-mode .expiry-banner {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

body.dark-mode .expiry-banner-icon {
    color: #FCA5A5;
}

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

body.dark-mode .expiry-banner-hint {
    color: #94a3b8;
}

body.dark-mode .expiry-banner-close {
    background: rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
}

body.dark-mode .expiry-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 다크모드 - 모달 */
body.dark-mode .modal-content {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
}

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

body.dark-mode .form-label {
    color: #f1f5f9;
}

body.dark-mode .form-input,
body.dark-mode .form-select {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
}

body.dark-mode .form-input:focus,
body.dark-mode .form-select:focus {
    border-color: #3B82F6;
}

body.dark-mode .title-edit-modal-content,
body.dark-mode .preview-modal-content {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .title-edit-modal-header h3,
body.dark-mode #preview-modal-title {
    color: #f1f5f9;
}

body.dark-mode .title-edit-input {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
}

body.dark-mode .title-edit-char-count {
    color: #94a3b8;
}

body.dark-mode .title-edit-cancel-btn,
body.dark-mode .title-edit-save-btn {
    background: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
    color: #f1f5f9;
}

body.dark-mode .title-edit-save-btn:hover {
    background: #3B82F6;
    border-color: #3B82F6;
}

body.dark-mode .title-edit-cancel-btn:hover {
    background: #334155;
}

/* 다크모드 - 컨테이너 배경 */
body.dark-mode .storage-container {
    background: transparent;
}

body.dark-mode .main-container {
    background: rgb(32, 33, 37);
    min-height: 100vh;
}

/* 빈 상태 메시지 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.empty-state-icon {
    font-size: 64px;
    color: #D1D5DB;
    margin-bottom: 24px;
    opacity: 0.6;
}

.empty-state-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: #666;
}

/* 다크모드 - 빈 상태 메시지 */
body.dark-mode .empty-state {
    color: #94a3b8;
}

body.dark-mode .empty-state-icon {
    color: #ffffff;
    opacity: 0.5;
}

body.dark-mode .empty-state-text {
    color: #ffffff;
}

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

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-header-right {
        width: 100%;
    }
    .search-bar {
        flex: 1;
        min-width: 0;
    }
}

