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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    min-height: 100vh;
    color: #000;
}

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

.screen {
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    padding: 30px;
    box-shadow: 6px 6px 0 #000;
}

h1 {
    color: #000;
    margin-bottom: 20px;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 3px solid #000;
    border-radius: 0;
    font-size: 16px;
    background: #fff;
    color: #000;
}

input[type="text"]:focus {
    outline: none;
    background: #fecc00;
}

button {
    padding: 12px 20px;
    background: #000;
    color: #fff;
    border: 3px solid #000;
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: none;
}

button:hover {
    background: #fecc00;
    color: #000;
}

button:active {
    transform: translate(2px, 2px);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 3px solid #000;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.logout-btn {
    background: #fff;
    color: #000;
}

.logout-btn:hover {
    background: #000;
    color: #fecc00;
}

.error {
    color: #000;
    background: #fecc00;
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: bold;
}

.error:empty {
    display: none;
}

.stats {
    background: #f2f2f2;
    border: 3px solid #000;
    padding: 15px;
    border-radius: 0;
    margin-bottom: 20px;
}

.stats h3 {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-item {
    padding: 4px 0;
    color: #000;
    font-size: 14px;
}

.folders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.folder {
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    padding: 20px;
    position: relative;
}

.folder h2 {
    color: #000;
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
    display: inline-block;
    background: #fecc00;
    padding: 2px 8px;
}

.folder input[type="file"] {
    margin-bottom: 15px;
    width: 100%;
    font-size: 13px;
}

.file-list {
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 0;
    border: 2px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.1s ease;
}

.file-item:hover {
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 #000;
}

.file-info {
    flex: 1;
    min-width: 0;
}

.file-info strong {
    display: block;
    color: #000;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-meta {
    display: block;
    color: #000;
    font-size: 12px;
    margin-bottom: 3px;
}

.file-stored {
    display: block;
    color: #767676;
    font-size: 11px;
    font-style: italic;
}

.delete-btn {
    background: #fff;
    color: #000;
    border: 2px solid #000;
    padding: 8px 12px;
    font-size: 12px;
    margin-left: 10px;
    flex-shrink: 0;
}

.delete-btn:hover {
    background: #000;
    color: #fecc00;
}

/* ==========================================================
   Панель очереди загрузки
   ========================================================== */

#uploadQueueContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    max-height: 70vh;
    overflow-y: auto;
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 6px 6px 0 #000;
    z-index: 1000;
    padding: 15px;
}

#uploadQueueContainer h4 {
    margin: 0 0 12px;
    font-size: 13px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.queue-item {
    background: #f2f2f2;
    border: 2px solid #000;
    border-radius: 0;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.queue-item:last-child {
    margin-bottom: 0;
}

.queue-item-info {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.queue-item-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold;
    color: #000;
}

.queue-item-folder {
    color: #767676;
    flex-shrink: 0;
    font-size: 12px;
}

.queue-item-progress-bar {
    width: 100%;
    height: 16px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 8px;
}

.queue-item-progress-fill {
    height: 100%;
    width: 0%;
    background: #fecc00;
    transition: width 0.1s linear;
}

.queue-item-done .queue-item-progress-fill {
    background: #000;
}

.queue-item-cancelled .queue-item-progress-fill {
    background: #ccc;
}

.queue-item-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-item-status {
    color: #000;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.queue-item-error .queue-item-status {
    background: #fecc00;
    padding: 2px 6px;
}

.queue-cancel-btn {
    border: 2px solid #000;
    border-radius: 0;
    background: #fff;
    color: #000;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    padding: 4px 8px;
}

.queue-cancel-btn:hover {
    background: #000;
    color: #fecc00;
}

.queue-cancel-btn:active {
    transform: translate(1px, 1px);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .folders {
        grid-template-columns: 1fr;
    }

    .screen {
        padding: 20px;
        box-shadow: 4px 4px 0 #000;
    }

    #uploadQueueContainer {
        width: 90%;
        left: 5%;
        right: 5%;
        bottom: 10px;
    }
}
