/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}


/* Main Content */
.main-content {
    flex: 1;
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

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

.page-title {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: #F4CB47;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* Academic Content */
.academic-content {
    background-color: #2a2a2a;
    border-radius: 15px;
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
}

/* Error Message */
.error-message {
    background-color: #ff4444;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.error-message h2 {
    color: #F4CB47;
    margin-bottom: 1rem;
}

/* Academic Structure Styles */
.academic-section {
    margin-bottom: 2rem;
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.academic-section:hover {
    box-shadow: 0 5px 20px rgba(244, 203, 71, 0.1);
}

.section-header {
    background-color: #F4CB47;
    color: #000000;
    padding: 1rem 1.5rem;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.section-header:hover {
    background-color: #E6B73A;
}

.section-header .toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.section-header.collapsed .toggle-icon {
    transform: rotate(90deg);
}

.section-content {
    padding: 1.5rem;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.section-content.collapsed {
    max-height: 0;
    padding: 0 1.5rem;
}

/* File and Folder Items */
.folder-container {
    margin: 0.5rem 0;
    background-color: #333333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.folder-container:hover {
    box-shadow: 0 3px 15px rgba(244, 203, 71, 0.1);
}

.folder-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: #404040;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
}

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

.folder-header.collapsed {
    background-color: #404040;
}

.folder-toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: #F4CB47;
}

.folder-header.collapsed .folder-toggle-icon {
    transform: rotate(90deg);
}

.folder-content {
    padding: 1rem;
    max-height: 8000px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background-color: #2a2a2a;
}

.folder-content.collapsed {
    max-height: 0;
    padding: 0 1rem;
}

.file-item,
.folder-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    background-color: #2a2a2a;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.file-item:hover,
.folder-item:hover {
    background-color: #3a3a3a;
    border-left-color: #F4CB47;
    transform: translateX(5px);
}

.file-item a {
    color: #ffffff;
    text-decoration: none;
    flex: 1;
    font-size: 1rem;
}

.file-item a:hover {
    color: #F4CB47;
}

.file-meta {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
}

.file-icon,
.folder-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.file-icon {
    color: #4CAF50;
}

.folder-icon {
    color: #F4CB47;
}

/* Folder Link Icon */
.folder-link-icon {
    margin-left: auto;
    color: #F4CB47;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.folder-link-icon:hover {
    opacity: 1;
    background-color: rgba(244, 203, 71, 0.1);
    transform: scale(1.1);
}

/* Nested Structure */
.nested-content {
    margin-left: 1rem;
    border-left: 2px solid #404040;
    padding-left: 0.5rem;
}

.folder-container .nested-content {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
}

/* Custom Scrollbar Styling */
.academic-content::-webkit-scrollbar,
.academic-content::-webkit-scrollbar {
    width: 8px;
}

.academic-content::-webkit-scrollbar-track,
.academic-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.academic-content::-webkit-scrollbar-thumb,
.academic-content::-webkit-scrollbar-thumb {
    background: #F4CB47;
    border-radius: 4px;
}

.academic-content::-webkit-scrollbar-thumb:hover,
.academic-content::-webkit-scrollbar-thumb:hover {
    background: #E6B73A;
}

/* Responsive Design */
@media (max-width: 768px) {

    .page-title {
        font-size: 2rem;
    }

    .input-container {
        flex-direction: column;
    }

    .container {
        padding: 0 1rem;
    }

    .nested-content {
        margin-left: 0.5rem;
        padding-left: 0.25rem;
    }

    .folder-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .folder-content {
        padding: 0.75rem;
    }
}

/* Footer */
.footer {
    background-color: #000000;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.footer-sections {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-section h3 {
    color: #F4CB47;
    font-size: 1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #F4CB47;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block !important;
    font-size: 1.2rem;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-sections {
        justify-content: center;
    }
}