* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:
        Manrope,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
}

html,
body {
    height: 100%;
}

body {
    background-color: #f5f5f5;
}

.wrapper {
    display: flex;
    height: 100vh;
    flex-direction: column;
}

.header {
    background: #fff;
    color: black;
    padding: 1rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
}

.header h1 {
    margin: 0;
    font-size: 1rem;
    line-height: 1;
    font-weight: 600;
}

.sidebar img {
    max-width: 100%;
    max-height: 3rem;
    margin-bottom: 1rem;
}

.content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.sidebar {
    width: 300px;
    background: white;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    padding: 1.5rem;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
}

.sidebar h5 {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #65757c;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.toolbar {
    background: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-list {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #f5f5f5;
}

.tree-link {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.33rem;
    color: #777;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .9rem;
}

.tree-link:hover {
    background-color: #f0f0f0;
    color: #667eea;
}

.tree-link.active {
    color: #333;
    font-weight: 500;
}

.tree-link i {
    margin-right: 0.6rem;
    min-width: 1.2rem;
    color: inherit;
}

.file-link {
    color: #555;
}

.file-link:hover {
    color: #667eea;
}

.tree-item {
    margin: 0.2rem 0;
}

.file-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-content-card {
    background: #eee;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-top: 1.5rem;
    transition: all 0.2s;
}

.file-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: firebrick;
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.file-icon {
    font-size: 1.5rem;
    color: #65757c;
    margin-right: 1rem;
    min-width: 1.5rem;
}

.file-icon-dir {
    font-size: 1.5rem;
    color: #edcb68;
    margin-right: 1rem;
    min-width: 1.5rem;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin: 0;
    word-break: break-all;
}

.file-meta {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.breadcrumb-item a {
    color: firebrick;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
}
