
:root {
    --primary-color: #4a6bff;
    --hover-color: #3451d1;
    --background-color: #f8f9fa;
    --card-color: #ffffff;
    --text-color: #333;
    --border-color: #e1e4e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--card-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

h1 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.search-sort {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
}

input[type="text"] {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 250px;
    font-size: 14px;
    transition: all 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 107, 255, 0.25);
}

button, select {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover, select:hover {
    background-color: var(--hover-color);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

thead {
    background-color: #f3f4f6;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    font-weight: 600;
    color: #555;
}

tr:hover {
    background-color: #f5f8ff;
}

.file-row {
    transition: all 0.2s;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 20px;
    color: var(--primary-color);
    width: 28px;
    text-align: center;
}

.file-name {
    word-break: break-all;
}

.file-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.file-link:hover {
    color: var(--primary-color);
}

.file-meta {
    color: #666;
    font-size: 14px;
}

.file-size, .file-date {
    white-space: nowrap;
}

.empty-dir {
    text-align: center;
    padding: 50px;
    color: #888;
}

.back-button {
    margin-bottom: 20px;
    display: inline-block;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.back-button:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-sort {
        width: 100%;
        margin-top: 15px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .container {
        padding: 20px 15px;
    }
}

/* 파일 타입 아이콘 색상 */
.icon-image { color: #f06292; }
.icon-video { color: #9c27b0; }
.icon-audio { color: #673ab7; }
.icon-document { color: #3f51b5; }
.icon-code { color: #009688; }
.icon-archive { color: #8d6e63; }
.icon-folder { color: #ffc107; }
.icon-text { color: #2196f3; }
.icon-pdf { color: #e53935; }
.icon-unknown { color: #78909c; }
    