:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-sub: #b0b0b0;
    --accent: #bb86fc;
    --highlight: #03dac6;
    --error: #cf6679;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
}

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

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

header h1 {
    margin: 0;
    font-size: 2rem;
    color: var(--accent);
}

header .date {
    color: var(--text-sub);
    margin-top: 10px;
}

/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card h3 {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: var(--text-sub);
}

.card .value {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: var(--highlight);
}

/* Play List */
.play-list h2 {
    border-bottom: 2px solid var(--card-bg);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background-color: #2c2c2c;
    color: var(--text-sub);
    font-weight: normal;
}

tr {
    border-bottom: 1px solid #333;
}

tr:last-child {
    border-bottom: none;
}


/* Clear Status Highlights */
/* Clear Status Highlights (Text Only) */
.text-clear-1 {
    color: var(--error);
}

/* FAILED */
.text-clear-2,
.text-clear-3 {
    color: #ce93d8;
}

/* ASSIST */
.text-clear-4,
.text-clear-5 {
    color: #a5d6a7;
}

/* EASY */
.text-clear-6,
.text-clear-7 {
    color: #ef5350;
}

/* NORMAL */
.text-clear-8,
.text-clear-9,
.text-clear-10 {
    color: var(--highlight);
    font-weight: bold;
}

/* HARD+ */

/* FC / PERFECT */

.diff.plus {
    color: var(--highlight);
}

.diff.minus {
    color: var(--error);
}

.diff-cell {
    font-size: 0.85em;
    line-height: 1.4;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: var(--text-sub);
}

.hash {
    font-family: monospace;
    background: #333;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Upload Section */
.upload-desc {
    color: var(--text-sub);
    margin-bottom: 20px;
}

.file-inputs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.input-group label {
    margin-bottom: 5px;
    color: var(--accent);
    font-weight: bold;
}

input[type="file"] {
    background: #333;
    padding: 10px;
    border-radius: 4px;
    color: var(--text-main);
    cursor: pointer;
}

button#load-btn {
    background-color: var(--highlight);
    color: #000;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: opacity 0.3s;
}

button#load-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #555;
    color: #888;
}

button#load-btn:hover:not(:disabled) {
    opacity: 0.8;
}

/* Dashboard Stats (New Design) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: #fff;
}

.stat-icon.play {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.stat-icon.clear {
    background: linear-gradient(135deg, #2af598, #009efd);
}

.stat-icon.fail {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: #333;
}

.stat-icon.note {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.stat-info h3 {
    margin: 0;
    font-size: 0.9em;
    color: #aaa;
    font-weight: normal;
}

.stat-value {
    margin: 5px 0 0;
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
}

/* Footer */
#footer {
    margin-top: 50px;
    padding: 20px;
    text-align: center;
    font-size: 0.8em;
    color: #666;
    border-top: 1px solid #333;
    width: 100%;
    box-sizing: border-box;
}

#footer p {
    margin: 5px 0;
}

#footer a {
    color: #888;
    text-decoration: none;
    border-bottom: 1px dotted #888;
}

#footer a:hover {
    color: var(--highlight);
    border-bottom: 1px solid var(--highlight);
}

.social-links {
    margin-top: 10px;
    font-size: 1.1em;
}

.social-links a {
    color: #aaa;
    margin: 0 10px;
    border-bottom: none !important;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #fff !important;
}

.social-links i {
    margin-right: 5px;
}

.separator {
    color: #444;
}