:root {
    /* Color styles */
    --backpackexchange---athens--gray: rgba(244, 244, 246, 1);
    --backpackexchange---athens--gray-60: rgba(244, 244, 246, 0.6);
    --backpackexchange---black: rgba(0, 0, 0, 1);
    --backpackexchange---blue--ribbon-20: rgba(0, 87, 235, 0.2);
    --backpackexchange---buttercup: rgba(239, 164, 17, 1);
    --backpackexchange---carissma: rgba(229, 122, 176, 1);
    --backpackexchange---carissma-15: rgba(229, 122, 176, 0.15);
    --backpackexchange---cinnabar: rgba(227, 62, 63, 1);
    --backpackexchange---dodger--blue: rgba(76, 148, 255, 1);
    --backpackexchange---gray--chateau: rgba(150, 159, 175, 1);
    --backpackexchange---gray--chateau-70: rgba(150, 159, 175, 0.7);
    --backpackexchange---jade: rgba(0, 194, 120, 1);
    --backpackexchange---jade-2: rgb(128, 163, 0);
    --backpackexchange---koromiko: rgba(255, 184, 106, 1);
    --backpackexchange---lochmara: rgb(2, 140, 220);
    --backpackexchange---lochmara-hover: rgb(40, 173, 250);
    --backpackexchange---mischka: rgba(209, 213, 220, 1);
    --backpackexchange---orient: rgba(0, 89, 138, 1);
    --backpackexchange---regal--blue: rgba(2, 74, 112, 1);
    --backpackexchange---saffron: rgba(248, 200, 64, 1);
    --backpackexchange---shark-1: rgba(26, 27, 33, 1);
    --backpackexchange---shark-2: rgba(32, 33, 39, 1);
    --backpackexchange---storm--gray: rgba(117, 121, 138, 1);
    --backpackexchange---tuna: rgba(56, 58, 69, 1);
    --backpackexchange---waterloo: rgba(126, 131, 153, 1);
    --backpackexchange---white: rgba(255, 255, 255, 1);
    --backpackexchange---white-02: rgba(255, 255, 255, 0.002);
    --backpackexchange---white-15: rgba(255, 255, 255, 0.15);
    --backpackexchange---white--woodsmoke: rgba(255, 255, 255, 1);
    --backpackexchange---woodsmoke-1: rgba(14, 15, 20, 1);
    --backpackexchange---woodsmoke-2: rgba(20, 21, 27, 1);

    /* Text-size styles */
    --backpackexchange---semantic---button: 13.890625px;
    --backpackexchange---semantic---button-1: 13.890625px;
    --backpackexchange---semantic---button-2: 14px;
    --backpackexchange---semantic---cell: 11.8125px;
    --backpackexchange---semantic---button: 14px;
    --backpackexchange---semantic---cell: 12px;
    --backpackexchange---semantic---data: 12px;
    --backpackexchange---semantic---data: 14px;
    --backpackexchange---semantic---data: 12px;
    --backpackexchange---semantic---data-title: 14px;
    --backpackexchange---semantic---link: 13.890625px;
    --backpackexchange---semantic---link: 14px;
    --backpackexchange---inter---regular: 14px;
    --backpackexchange---inter---regular: 14px;
    --backpackexchange---inter---regular: 11.8125px;
    --backpackexchange---inter---regular: 13.890625px;
    --backpackexchange---inter---medium: 43.6875px;
    --backpackexchange---inter---medium-title: 33.328125px;
    --backpackexchange---inter---medium: 19.53125px;
    --backpackexchange---inter---medium: 30px;
    --backpackexchange---inter---medium: 13.890625px;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--backpackexchange---woodsmoke-1);
    color: var(--backpackexchange---athens--gray);
    font-family: "Roboto", "Inter", sans-serif;
}

.main-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.calendar-container {
    background-color: var(--backpackexchange---woodsmoke-2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.calendar-months {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 15px;
    padding-top: 10px;
}

.month-container {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    margin-right: 15px;
}

.month-label {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--backpackexchange---gray--chateau);
    text-align: center;
}

.day-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: auto repeat(5, 1fr);
    gap: 2px;
}

.day-row {
    display: flex;
    flex-wrap: nowrap;
}

.day-cell {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background-color: var(--backpackexchange---shark-2);
    margin: 1px;
    transition: all 0.2s ease;
}

.day-cell.has-data {
    background-color: var(--backpackexchange---lochmara);
    cursor: pointer;
}

.day-cell.has-data:hover {
    background-color: var(--backpackexchange---lochmara-hover);
    transform: scale(1.1);
}

.day-cell.empty {
    opacity: 0;
}

.day-cell.today {
    border: 1px solid var(--backpackexchange---athens--gray);
}

.day-label {
    font-size: 10px;
    color: var(--backpackexchange---gray--chateau);
    text-align: center;
    height: 16px;
    line-height: 16px;
    padding: 1px;
}

.file-explorer {
    width: 100%;
    background-color: var(--backpackexchange---woodsmoke-2);
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
}

.item {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 6px 0;
}

.item .icon {
    width: 24px;
    margin-right: 8px;
    text-align: center;
}

.item .name {
    flex: 0 auto;
    margin-right: 8px;
}

.item .size {
    color: var(--backpackexchange---athens--gray);
    font-size: 0.9em;
    margin-right: 8px;
}

.download-icon {
    margin-left: auto;
    cursor: pointer;
}

.children {
    margin-left: 24px;
    display: none;
}

.folder.open > .children {
    display: block;
}

.folder > .item::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(244,244,246,1)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-90deg);
}
.folder.open > .item::after {
    transform: rotate(0deg);
}

.file:hover {
    text-decoration: underline;
}

.folder-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.download-progress {
    margin-left: 12px;
    width: 100px;
    height: 10px;
    display: none;
    border: none;
}

.download-progress::-webkit-progress-bar {
    background-color: var(--backpackexchange---shark-2);
    border-radius: 4px;
}

.download-progress::-webkit-progress-value {
    background-color: var(--backpackexchange---jade);
    border-radius: 4px;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: auto;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.toast {
    display: flex;
    align-items: center;
    background-color: #3b3b3b;
    color: var(--backpackexchange---athens--gray);
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast .toast-icon {
    margin-right: 8px;
    color: var(--backpackexchange---cinnabar);
}

.toast-success .toast-icon {
    color: var(--backpackexchange---jade);
}

.toast .toast-message {
    flex: 1;
    font-size: 14px;
}

.explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.explorer-title {
    font-size: 20px;
    font-weight: 400;
}

.explorer-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.explorer-filter {
    display: flex;
    align-items: center;
}

.filter-label {
    margin-right: 8px;
}

.filter-select {
    background-color: var(--backpackexchange---shark-2);
    color: var(--backpackexchange---athens--gray);
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    padding-right: 34px; /* добавим отступ справа для стрелки */
    appearance: none; /* уберём стандартную стрелку */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}

.action-button {
    background-color: var(--backpackexchange---shark-2);
    color: var(--backpackexchange---athens--gray);
    border: none;
    border-radius: 8px;
    margin-right: 24px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-button:hover {
    opacity: 0.9;
}

.weekday-labels {
    display: flex;
    flex-direction: column;
    margin-right: 4px;
}

.weekday-label {
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    color: var(--backpackexchange---athens--gray);
    margin: 1px 0;
}

.day-cell[title] {
    position: relative;
}

.day-cell[title]:hover::after {
    content: attr(title);
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--backpackexchange---athens--gray);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 5px;
}

.top-info-bar {
    background-color: var(--backpackexchange---woodsmoke-1);
    color: var(--backpackexchange---athens--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
}

.top-info-bar .address {
    color: var(--backpackexchange---lochmara);
    margin-left: 5px;
}

.top-info-bar a {
    color: var(--backpackexchange---lochmara);
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-info-bar a:hover {
    color: var(--backpackexchange---lochmara-hover);
}

.integrity-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.8em;
    margin-left: 4px;
    cursor: help;
}

.integrity-badge[data-integrity="100"] {
    background-color: var(--backpackexchange---jade);
    color: var(--backpackexchange---athens--gray);
}

.integrity-badge[data-integrity="99"] {
    background-color: var(--backpackexchange---jade-2);
    color: var(--backpackexchange---athens--gray);
}

.integrity-badge[data-integrity="98"] {
    background-color: var(--backpackexchange---koromiko);
    color: var(--backpackexchange---athens--gray);
}

.integrity-badge[data-integrity="low"] {
    background-color: var(--backpackexchange---cinnabar);
    color: var(--backpackexchange---athens--gray);
}
