:root {
    --bg-color: #f5e6ff;
    --text-color: #4a3b6b;
    --heading-color: #6b4b8e;
    --subtitle-color: #8a6fb1;
    --icon-main-color: #8a6fb1;
    --icon-accent-color: #f5e6ff;
    --item-bg: rgba(138, 111, 177, 0.1);
    --item-hover: rgba(138, 111, 177, 0.2);
    --item-border: rgba(138, 111, 177, 0.2);
}

[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --text-color: #e2cbff;
    --heading-color: #b19cd9;
    --subtitle-color: #c4a7e7;
    --icon-main-color: #b19cd9;
    --icon-accent-color: #1a1a2e;
    --item-bg: rgba(107, 75, 142, 0.1);
    --item-hover: rgba(107, 75, 142, 0.2);
    --item-border: rgba(107, 75, 142, 0.2);
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: var(--bg-color);
    font-family: 'Fira Code', monospace;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    margin-bottom: 2rem;
}

h1 {
    color: var(--heading-color);
    margin: 0 0 1rem 0;
}

.breadcrumb {
    color: var(--subtitle-color);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--subtitle-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.file-explorer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--item-bg);
    border: 1px solid var(--item-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: var(--item-hover);
    transform: translateY(-2px);
}

.file-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
}

.file-item span {
    text-align: center;
    word-break: break-word;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px;
    background: var(--item-bg);
    border: 1px solid var(--item-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--item-hover);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--heading-color);
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--item-bg);
    border: 1px solid var(--item-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.file-item:hover {
    background: var(--item-hover);
    transform: translateY(-2px);
}

.file-item span {
    text-align: center;
    word-break: break-word;
    margin-top: 0.5rem;
    font-weight: 500;
}

.breadcrumb {
    color: var(--subtitle-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--subtitle-color);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    background: var(--item-hover);
}

.breadcrumb .separator {
    margin: 0 0.5rem;
    color: var(--subtitle-color);
    opacity: 0.7;
}

/* SVG styling */
.file-item svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* Icon colors */
.folder-main {
    fill: var(--icon-main-color);
    transition: fill 0.3s ease;
}

.folder-accent {
    fill: var(--icon-accent-color);
    transition: fill 0.3s ease;
}

/* Hover effect for icons */
.file-item:hover svg {
    transform: scale(1.05);
}

a {
    color: var(--subtitle-color); /* Default link color */
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

a:hover {
    color: var(--heading-color); /* Link color on hover */
    text-decoration-color: var(--heading-color); /* Match underline color */
}