/* 기본 스타일 */
body {
    font-family: 'Pretendard', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    line-height: 1.6;
}

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

/* 헤더 스타일 */
.header {
    text-align: center;
    padding: 40px 0;
}

.header h1 {
    font-size: 2.5em;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #a8b8d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: #a8b8d0;
    margin-top: 10px;
}

/* 네비게이션 스타일 */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #a8b8d0;
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: #64ffda;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.nav-button {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 5px;
    color: #64ffda;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.nav-button:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.breadcrumb {
    margin-bottom: 20px;
    color: #a8b8d0;
}

.breadcrumb a {
    color: #64ffda;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
}

/* 날짜 섹션 스타일 */
.date-section {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.time-index {
    width: 150px;
    padding-right: 0px;
    display: flex;
    flex-direction: column;
}

.time-index h2 {
    color: #64ffda;
    margin-bottom: 15px;
    text-align: left;
    height: 60px;
    line-height: 1.3;
}

.time-spacer {
    height: 0px;
}

.time-label {
    color: #a8b8d0;
    font-size: 1.1em;
    padding: 10px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.2);
    height: 100px;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    justify-content: center;
    width: 100px;
}

.time-label.active {
    color: #64ffda;
}

.data-content {
    flex: 1;
    padding-left: 20px;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    height: 120px;
    width: 100%;
}

.track-item {
    text-align: center;
    background: transparent;
    padding: 10px;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
}

.category-headers {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    height: 40px;
}

.category-header {
    text-align: center;
    color: #64ffda;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px;
}

/* 테이블 스타일 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table th {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
}

.data-table td a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.data-table td a:hover {
    color: #64ffda;
}

/* 이미지 오버레이 스타일 */
.image-preview {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 10px;
}

.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.image-overlay.active {
    display: flex;
}

#overlayImg {
    max-width: 70%;
    max-height: 70vh;
    object-fit: contain;
    cursor: pointer;
}

#closeOverlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

/* 미리보기 이미지 스타일 */
.preview-image {
    cursor: pointer;
    transition: transform 0.2s;
}

.preview-image:hover {
    transform: scale(1.05);
}

/* 파일 리스트 스타일 */
.content-wrapper {
    display: flex;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.compare-mode-toggle {
    background: rgba(100, 255, 218, 0.1);
    color: #64ffda;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.compare-mode-toggle:hover {
    background: rgba(100, 255, 218, 0.2);
}

.compare-mode-toggle.active {
    background: rgba(100, 255, 218, 0.3);
}

.compare-container {
    display: none;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 5px;
}

.compare-container.active {
    display: block;
}

.compare-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    margin: 5px 0;
    object-fit: contain;
    cursor: pointer;
}

.file-list-container {
    width: 400px;
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-container {
    flex: 1;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: none;
    min-height: 600px;
    gap: 0;
}

.file-list {
    font-family: monospace;
    font-size: 0.9em;
}

.folder {
    margin-left: 20px;
}

.folder-header {
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.folder-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.folder-toggle {
    display: inline-block;
    width: 20px;
    color: #64ffda;
}

.folder-name {
    color: #a8b8d0;
}

.folder-content {
    display: none;
    padding-left: 15px;
}

.file {
    padding: 5px 5px 5px 25px;
    cursor: pointer;
    color: #a8b8d0;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.file:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #64ffda;
}

#previewImage {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    margin: 10px 0 5px 0;
    object-fit: contain;
    cursor: pointer;
}

.preview-title {
    color: #64ffda;
    margin-bottom: 5px;
    text-align: center;
    font-size: 1.2em;
}

.text-preview {
    font-family: monospace;
    white-space: pre-wrap;
    padding: 5px;
    border-radius: 8px;
    width: 100%;
    color: #a8b8d0;
    background: none;
} 