/* styles.css */
/* Base Styles */
:root {
    --primary-color: white;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f9f9f9;
    --text-color: #333;
    --border-color: #ddd;
    --folder-bg: #ffffff;
    --subfolder-bg: #f1f1f1;
    --file-bg: #fafafa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 100;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    padding-bottom: 2rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: #661111;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 100;
}

header h1 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    
    font-weight: lighter;
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: var(--secondary-color);
}

/* Folder Structure */
.folder-section {
    margin: 2rem 0;
}

.main-folder {
    background: var(--folder-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.folder-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.folder-header:hover {
    background-color: #d1d9e0;
}

.folder-header h2 {
    font-size: 1.3rem;
    color: #661111;
}

.folder-header h3 {
    font-size: 1rem;
    font-weight: 100;
    color: #661111;
}

.folder-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.toggle-icon {
    font-size: 0.9rem;
    transition: transform 0.3s;
    color:#661111;
}

.subfolders {
    display: none;
    list-style: none;
}

.subfolders.active {
    display: block;
}

.subfolder-header {
    padding: 1rem;
    background-color: var(--subfolder-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.subfolder-header:hover {
    background-color: #e9e9e9;
}

.subfolder-header h3 {
    font-size: 1.1rem;
    color: black;
}

.file-list {
    display: none;
    list-style: none;
    background-color: var(--file-bg);
    padding: 0 1rem 0 2rem;
}

.file-list.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.file-list li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed #eee;
    transition: background-color 0.2s;
}

.file-list li:last-child {
    border-bottom: none;
}

.file-list a {
    color: var(--secondary-color);
    text-decoration: none;
    display: block;
    padding: 0.3rem 0;
    font-size: 0.95rem;
    transition: color 0.2s, padding-left 0.2s;
}

.file-list a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.file-list a::before {
    content: "📄";
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

footer p {
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .main-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .folder-header h2 {
        font-size: 1.1rem;
    }

    .subfolder-header h3 {
        font-size: 1rem;
        text-align: left;
    }

    .file-list a {
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    .main-menu, .toggle-icon {
        display: none;
    }

    .subfolders, .file-list {
        display: block !important;
    }

    .file-list {
        page-break-inside: avoid;
    }
}