* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f5f7;
    color: #202124;
}

.header {
    background: #1f2937;
    color: white;
    padding: 22px;
}

.header-inner,
.container {
    max-width: 1100px;
    margin: auto;
}

.header h1 {
    margin: 0;
    font-size: 28px;
}

.header p {
    margin: 6px 0 0;
    opacity: .8;
}

.container {
    margin: 30px auto;
    padding: 0 18px;
}

.upload-box {
    background: white;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0,0,0,.07);
    border: 2px dashed #cbd5e1;
}

.upload-box.dragover {
    border-color: #2563eb;
    background: #eff6ff;
}

.upload-box h2 {
    margin-top: 0;
}

.buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

button,
.button {
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.primary {
    background: #2563eb;
    color: white;
}

.secondary {
    background: #e5e7eb;
    color: #111827;
}

.danger {
    background: #dc2626;
    color: white;
}

.success {
    background: #16a34a;
    color: white;
}

button:hover,
.button:hover {
    opacity: .88;
}

input[type=file] {
    display: none;
}

.selected-info {
    margin-top: 18px;
    color: #4b5563;
}


/* ROBOTEK */

.transfer-animation {
    display: none;
    margin-top: 25px;
}

.transfer-animation.visible {
    display: block;
}

.transfer-track {
    position: relative;
    height: 70px;
    margin: 0 8px;
    overflow: hidden;
}

.transfer-start,
.transfer-end {
    position: absolute;
    top: 27px;
    font-size: 24px;
    z-index: 1;
}

.transfer-start {
    left: 0;
}

.transfer-end {
    right: 0;
}

.robot {
    position: absolute;
    left: 0;
    top: 3px;
    width: 72px;
    height: 62px;
    transform: translateX(0);
    transition: transform .15s linear;
    z-index: 3;
}

.robot-body {
    position: absolute;
    left: 20px;
    top: 18px;
    font-size: 34px;
    line-height: 34px;
}

.robot-folder {
    position: absolute;
    left: 45px;
    top: 25px;
    font-size: 22px;
    z-index: 4;
}

.robot-leg {
    position: absolute;
    width: 5px;
    height: 15px;
    background: #374151;
    top: 48px;
    border-radius: 5px;
    transform-origin: top center;
}

.robot-leg.left {
    left: 34px;
    animation: runLeft .22s infinite alternate;
}

.robot-leg.right {
    left: 47px;
    animation: runRight .22s infinite alternate;
}

.robot.download-mode {
    transform: scaleX(-1);
}

.robot.download-mode .robot-leg.left {
    animation-name: runRight;
}

.robot.download-mode .robot-leg.right {
    animation-name: runLeft;
}

@keyframes runLeft {
    from {
        transform: rotate(25deg);
    }

    to {
        transform: rotate(-25deg);
    }
}

@keyframes runRight {
    from {
        transform: rotate(-25deg);
    }

    to {
        transform: rotate(25deg);
    }
}

.transfer-road {
    position: absolute;
    left: 0;
    right: 0;
    top: 58px;
    border-bottom: 2px dashed #cbd5e1;
}


/* PROGRESS */

.progress-container {
    display: none;
    margin-top: 5px;
}

.progress-bar-background {
    width: 100%;
    height: 22px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: #2563eb;
    transition: width .15s;
}

.progress-text {
    margin-top: 8px;
    font-weight: bold;
}

.download-message {
    display: none;
    margin-top: 12px;
    font-weight: bold;
    color: #16a34a;
}

.download-message.visible {
    display: block;
}


/* STORAGE */

.storage {
    background: white;
    margin-top: 25px;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,.06);
}

.storage-bar {
    height: 16px;
    background: #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 10px;
}

.storage-used {
    height: 100%;
    background: #2563eb;
}


/* MAPE */

.section {
    margin-top: 30px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-title h2 {
    margin: 0;
}

.back-button {
    margin-bottom: 18px;
}

.folders {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(270px, 1fr));

    gap: 16px;
    margin-top: 18px;
}

.folder-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,.06);
}

.folder-icon {
    font-size: 42px;
    margin-bottom: 10px;
}

.folder-name {
    font-size: 18px;
    font-weight: bold;
    word-break: break-word;
}

.folder-info {
    margin-top: 7px;
    color: #6b7280;
}

.folder-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.folder-actions a,
.folder-actions button {
    font-size: 14px;
    padding: 9px 12px;
}


/* DATOTEKE */

.file-list {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,.06);
    margin-top: 18px;
}

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px;
    border-bottom: 1px solid #e5e7eb;
}

.file-row:last-child {
    border-bottom: 0;
}

.file-name {
    word-break: break-word;
    flex: 1;
}

.file-size {
    color: #6b7280;
    white-space: nowrap;
}

.file-actions {
    display: flex;
    gap: 7px;
}

.empty {
    background: white;
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    color: #6b7280;
    margin-top: 18px;
}

.breadcrumb {
    margin-top: 10px;
    color: #6b7280;
    word-break: break-word;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}


/* MOBIL */

@media (max-width: 650px) {

    .container {
        margin-top: 18px;
    }

    .upload-box {
        padding: 20px;
    }

    .file-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .file-actions {
        width: 100%;
    }

    .file-actions a,
    .file-actions button {
        flex: 1;
    }

    .transfer-track {
        height: 75px;
    }

}
