:root {
    --primary-color: #12212b;
    --accent-color: #ff1a41;
    --neutral-100: #ffffff;
    --neutral-200: #f7f7f5;
    --neutral-300: #eceae6;
    --neutral-400: #e8e5df;
    --border-color: #e4e0d8;
    --extension-color: rgba(18, 33, 43, 0.55);
    --shadow-color: rgba(18, 33, 43, 0.08);
}

body {
    font-family: Verdana, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--neutral-100);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.container {
    background: var(--neutral-100);
    padding: 32px 24px;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    max-width: 1280px;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.data-container {
    display: flex;
    width: 100%;
    gap: 18px;
    padding: 8px 6px 32px;
    flex-direction: column;
    overflow: visible;
    box-sizing: border-box;
}

.folder {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.folder-name {
    z-index: 1;
    background-color: var(--neutral-100);
    min-height: 0;
    border: 1px solid var(--neutral-300);
    border-radius: 30px;
    padding: 14px 18px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.folder-icon {
    transition: transform 0.3s ease, color 0.3s ease;
    color: inherit;
    font-size: 0.95rem;
}

.folder-text {
    color: inherit;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
}

.folder-name:hover,
.folder.is-open .folder-name {
    color: var(--primary-color);
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    padding: 20px 18px 6px;
    margin: -12px 8px 0;
    background-color: var(--neutral-100);
    border: none;
    border-radius: 0 0 28px 28px;
}

.subfolder {
    list-style: none;
}

.subfolder > .folder {
    margin-left: 8px;
}

.empty-message {
    font-style: italic;
    color: #7c868f;
    font-size: small;
}

.empty-message-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    padding: 24px;
    box-sizing: border-box;
    background-color: var(--neutral-100);
    border: 1px solid var(--neutral-300);
    border-radius: 24px;
    text-align: center;
}

.file {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: #fcfbf9;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.file:hover {
    border-color: rgba(255, 26, 65, 0.25);
    transform: translateY(1px);
}

.file-info {
    font-weight: normal;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.file-name {
    font-weight: normal;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.file-icon {
    color: var(--primary-color);
    margin-top: 2px;
}

.file-extension {
    color: var(--extension-color);
    font-size: smaller;
    margin-left: 5px;
}

.file-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    font-weight: normal;
    height: 100%;
    align-items: center;
}

.file-action {
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1rem;
}

.file-action:hover {
    color: var(--accent-color);
    transform: translateY(1px);
}

.file-viewer {
    width: 100%;
    height: auto;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.folder-name:focus {
    outline: 2px solid rgba(255, 26, 65, 0.35);
    outline-offset: 2px;
}

iframe {
    min-height: calc(100vh - 160px);
    border-radius: 24px;
    background-color: var(--neutral-100);
}

@media screen and (max-width: 767px) {
    .container {
        padding: 24px 16px;
    }

    .folder-name {
        border-radius: 28px;
        padding: 14px 18px;
    }

    .item-list {
        padding: 18px 12px 4px;
        margin: -12px 4px 0;
        border-radius: 0 0 24px 24px;
    }

    .file-info {
        flex-direction: column;
        gap: 12px;
    }
}
