/* Variables, tipografía, botones y componentes comunes. */

/*
 * ============================================================
 * CARAJILLO CLOUD
 * HOJA DE ESTILOS PRINCIPAL
 * ============================================================
 *
 * Este archivo reúne los bloques CSS que anteriormente estaban
 * incluidos dentro de index.html.
 *
 * El contenido y el orden de las reglas se conservan.
 * ============================================================
 */

:root {
    color-scheme: light;

    --page: #edf6fc;
    --page-deep: #deedf7;

    --surface: rgba(255, 255, 255, 0.94);
    --surface-solid: #ffffff;
    --surface-soft: #f6fbff;
    --surface-blue: #e8f4fc;

    --border: #cfdfeb;
    --border-strong: #b7cddd;

    --text: #18334b;
    --text-soft: #456278;
    --text-muted: #7891a5;

    --accent: #3f8fd1;
    --accent-dark: #2877b8;
    --accent-soft: #dceefd;

    --danger: #ce4e5c;
    --success: #268d69;
    --warning: #c08322;

    --shadow:
        0 20px 55px rgba(69, 105, 131, 0.16);

    --shadow-small:
        0 7px 22px rgba(69, 105, 131, 0.10);

    --radius-small: 9px;
    --radius: 14px;
    --radius-large: 20px;

    --locations-width: 260px;
    --info-width: 340px;

    --item-size: 180px;
    --thumb-height: 136px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;

    color: var(--text);

    background:
        radial-gradient(
            circle at 12% -8%,
            rgba(255, 255, 255, 0.95),
            transparent 35%
        ),
        radial-gradient(
            circle at 96% 4%,
            rgba(197, 228, 247, 0.68),
            transparent 31%
        ),
        linear-gradient(
            180deg,
            var(--page),
            var(--page-deep)
        );

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 14px;
    line-height: 1.45;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--text-muted);
}

.soft {
    color: var(--text-soft);
}

.mono {
    font-family:
        "Cascadia Code",
        "SFMono-Regular",
        Consolas,
        monospace;
}

.button {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 12px;

    color: var(--text-soft);
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;

    box-shadow:
        0 2px 7px rgba(73, 104, 127, 0.05);

    cursor: pointer;

    transition:
        color 120ms ease,
        border-color 120ms ease,
        background 120ms ease,
        transform 120ms ease;
}

.button:hover {
    color: var(--text);
    background: #f9fcff;
    border-color: var(--border-strong);
}

.button:active {
    transform: translateY(1px);
}

.button.primary {
    color: white;

    background:
        linear-gradient(
            135deg,
            #55a3df,
            var(--accent-dark)
        );

    border-color: transparent;
}

.button.danger {
    color: var(--danger);
}

.button.icon {
    width: 38px;
    padding: 0;
}

.button.small {
    min-height: 32px;
    padding: 5px 9px;
    font-size: 12px;
}

input,
select,
textarea {
    color: var(--text);
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;

    transition:
        border-color 120ms ease,
        box-shadow 120ms ease;
}

input,
select {
    min-height: 40px;
    padding: 8px 11px;
}

textarea {
    padding: 13px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #78afe0;

    box-shadow:
        0 0 0 3px rgba(64, 143, 209, 0.12);
}


/* ============================================================
   LOGIN
   ============================================================ */

.login-view {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(420px, 100%);

    padding: 32px;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(183, 204, 220, 0.84);
    border-radius: 22px;

    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.cloud-logo {
    width: 54px;
    height: 42px;

    position: relative;

    margin-bottom: 16px;

    background: #70b2e3;
    border-radius: 24px;
}

.cloud-logo::before,
.cloud-logo::after {
    content: "";
    position: absolute;

    background: #70b2e3;
    border-radius: 999px;
}

.cloud-logo::before {
    width: 31px;
    height: 31px;

    left: 8px;
    top: -10px;
}

.cloud-logo::after {
    width: 25px;
    height: 25px;

    right: 3px;
    top: 2px;
}

.login-card h1 {
    margin: 0;
    letter-spacing: -0.03em;
}

.login-card p {
    margin: 7px 0 22px;
    color: var(--text-muted);
}

.login-form {
    display: grid;
    gap: 12px;
}


/* ============================================================
   ESTRUCTURA
   ============================================================ */

.app-view {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 60;

    min-height: 68px;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 10px 14px;

    background: rgba(245, 251, 255, 0.90);
    border-bottom: 1px solid rgba(190, 211, 226, 0.86);

    backdrop-filter: blur(18px);
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-right: 4px;
}

.topbar-brand .cloud-logo {
    width: 37px;
    height: 28px;
    margin: 0;
}

.topbar-brand .cloud-logo::before {
    width: 22px;
    height: 22px;

    top: -7px;
    left: 5px;
}

.topbar-brand .cloud-logo::after {
    width: 18px;
    height: 18px;
}

.topbar-brand strong {
    white-space: nowrap;
}

.breadcrumb {
    min-width: 120px;
    flex: 1;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    color: var(--text-soft);
}

.search-box {
    width: min(360px, 32vw);

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 10px;

    background: white;
    border: 1px solid var(--border);
    border-radius: 11px;
}

.search-box input {
    min-height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.recursive-label {
    display: flex;
    align-items: center;
    gap: 6px;

    color: var(--text-soft);
    font-size: 12px;
    white-space: nowrap;
}

.recursive-label input {
    width: auto;
    min-height: auto;
}

.app-body {
    min-height: calc(100vh - 68px);
    display: flex;
}


/* ============================================================
   BARRA IZQUIERDA DE UBICACIONES
   ============================================================ */

.locations-sidebar {
    width: var(--locations-width);
    min-width: var(--locations-width);

    position: sticky;
    top: 68px;

    height: calc(100vh - 68px);

    overflow: hidden;

    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid var(--border);

    transition:
        width 180ms ease,
        min-width 180ms ease,
        opacity 150ms ease;
}

.locations-sidebar.collapsed {
    width: 0;
    min-width: 0;
    opacity: 0;
    border-right: 0;
}

.locations-header {
    min-height: 57px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    padding: 10px 12px;

    border-bottom: 1px solid var(--border);
}

.locations-header strong {
    white-space: nowrap;
}

.locations-list {
    height: calc(100% - 57px);

    overflow-y: auto;
    padding: 9px;
}

.location-button {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 11px;
    margin-bottom: 5px;

    color: var(--text-soft);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;

    text-align: left;
    cursor: pointer;
}

.location-button:hover {
    color: var(--text);
    background: var(--surface-blue);
}

.location-button.active {
    color: var(--text);

    background: var(--accent-soft);
    border-color: #b9d7ec;
}

.location-symbol {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    color: white;
    background: #68aade;
    border-radius: 9px;
}

.location-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-weight: 680;
}


/* ============================================================
   ZONA PRINCIPAL
   ============================================================ */

.main-area {
    min-width: 0;
    flex: 1;

    padding: 12px;
}

.main-panel {
    min-height: calc(100vh - 92px);

    overflow: hidden;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow-small);
}

.file-toolbar {
    min-height: 58px;

    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;

    padding: 10px 13px;

    border-bottom: 1px solid var(--border);
}

.toolbar-spacer {
    flex: 1;
}

.selection-counter {
    min-width: 0;

    color: var(--text-muted);
    font-size: 12px;
}

.view-select {
    width: auto;
    min-width: 150px;
}

.file-content {
    min-height: calc(100vh - 167px);
    padding: 13px;
}


/* ============================================================
   TARJETAS
   ============================================================ */

.file-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(var(--item-size), 1fr)
        );

    gap: 11px;
}

.file-card {
    min-width: 0;

    position: relative;
    overflow: hidden;

    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);

    cursor: default;
    user-select: none;

    transition:
        border-color 120ms ease,
        box-shadow 120ms ease,
        transform 160ms ease,
        opacity 160ms ease;
}

.file-card:hover {
    border-color: #aac8dd;

    box-shadow:
        0 8px 24px rgba(63, 96, 120, 0.10);
}

.file-card.selected {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(63, 143, 209, 0.16);
}

.file-card.directory-drop {
    border-color: var(--accent);

    box-shadow:
        inset 0 0 0 3px rgba(63, 143, 209, 0.18);
}

.file-card.folder-enter-animation {
    animation:
        folder-item-enter 210ms ease both;
}

.file-card.item-created-animation {
    animation:
        item-created 260ms ease both;
}

.file-card.item-removing-animation {
    pointer-events: none;

    animation:
        item-removing 230ms ease forwards;
}

.file-visual {
    height: var(--thumb-height);

    display: grid;
    place-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #f6fbff,
            #edf6fc
        );

    border-bottom: 1px solid #e3edf4;
}

.file-visual img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: contain;
}

.file-text {
    min-width: 0;
    padding: 10px 11px 11px;
}

.file-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-weight: 690;
}


/* ============================================================
   ICONOS
   ============================================================ */

.classic-icon {
    width: 67px;
    height: 72px;

    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding-bottom: 9px;

    color: white;
    background: #7890a3;
    border-radius: 7px 7px 9px 9px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;

    box-shadow:
        0 6px 16px rgba(55, 84, 105, 0.14);
}

.classic-icon::after {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 20px;
    height: 20px;

    background:
        linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.42) 50%,
            transparent 51%
        );
}

.folder-icon {
    width: 78px;
    height: 56px;

    position: relative;

    margin-top: 10px;

    background: #f2bb43;
    border-radius: 6px 7px 9px 9px;

    box-shadow:
        inset 0 -5px 0 rgba(183, 127, 17, 0.11),
        0 7px 16px rgba(145, 102, 22, 0.13);
}

.folder-icon::before {
    content: "";

    position: absolute;

    width: 34px;
    height: 15px;

    top: -10px;
    left: 5px;

    background: #f4c65e;
    border-radius: 6px 6px 0 0;
}

.icon-excel {
    background: #248a57;
}

.icon-word {
    background: #2f70bd;
}

.icon-pdf {
    background: #d94d4d;
}

.icon-zip {
    background: #8268b8;
}

.icon-code {
    background: #4e789a;
}

.icon-audio {
    background: #d07c38;
}

.icon-generic {
    background: #788c9d;
}

.language-python {
    background: #3d78aa;
}

.language-shell {
    background: #548552;
}

.language-js {
    color: #3c3c2b;
    background: #e5c647;
}

.language-json {
    background: #c68436;
}

.language-css {
    background: #477fca;
}

.language-html {
    background: #d5673f;
}


/* ============================================================
   VISTAS
   ============================================================ */

.view-list {
    display: block;
}

.view-list .file-card {
    min-height: 54px;

    display: grid;

    grid-template-columns:
        56px
        minmax(0, 1fr);

    align-items: center;

    margin-bottom: 5px;

    border-radius: 10px;
}

.view-list .file-visual {
    width: 56px;
    height: 52px;

    border: 0;
    background: transparent;
}

.view-list .file-text {
    padding: 8px;
}

.view-list .folder-icon {
    width: 34px;
    height: 25px;

    margin-top: 6px;

    border-radius: 3px 4px 5px 5px;
}

.view-list .folder-icon::before {
    width: 16px;
    height: 7px;

    top: -5px;
    left: 3px;

    border-radius: 3px 3px 0 0;
}

.view-list .classic-icon {
    width: 30px;
    height: 36px;

    padding-bottom: 4px;

    font-size: 7px;
    border-radius: 4px;
}

.view-list .classic-icon::after {
    width: 9px;
    height: 9px;
}

.view-small {
    --item-size: 115px;
    --thumb-height: 86px;
}

.view-small .folder-icon,
.view-small .classic-icon {
    transform: scale(0.70);
}

.view-small .file-text {
    padding: 8px;
}

.view-medium {
    --item-size: 180px;
    --thumb-height: 136px;
}

.view-large {
    --item-size: 260px;
    --thumb-height: 220px;
}


/* ============================================================
   PANEL DE INFORMACIÓN LATERAL FIJO
   ============================================================ */

.info-drawer {
    width: var(--info-width);

    position: fixed;

    top: 79px;
    right: 12px;
    bottom: 12px;

    z-index: 70;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-large);

    box-shadow: var(--shadow);

    transform: translateX(
        calc(100% + 25px)
    );

    opacity: 0;
    pointer-events: none;

    transition:
        transform 190ms ease,
        opacity 150ms ease;
}

.info-drawer.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.info-header {
    min-height: 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    padding: 10px 13px;

    border-bottom: 1px solid var(--border);
}

.info-header strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.info-body {
    min-height: 0;
    flex: 1;

    overflow-y: auto;
    padding: 14px;
}

.info-empty {
    min-height: 240px;

    display: grid;
    place-items: center;

    color: var(--text-muted);
    text-align: center;
}

.info-preview {
    height: 180px;

    display: grid;
    place-items: center;

    overflow: hidden;

    margin-bottom: 14px;

    background: var(--surface-blue);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.info-preview img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.info-title {
    overflow-wrap: anywhere;

    font-size: 16px;
    font-weight: 760;
}

.info-table {
    display: grid;
    gap: 10px;

    margin-top: 15px;
}

.info-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
}

.info-key {
    color: var(--text-muted);
}

.info-value {
    min-width: 0;

    color: var(--text-soft);
    overflow-wrap: anywhere;
}

.info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 16px;
}


/* ============================================================
   ESTADOS
   ============================================================ */

.empty-folder {
    min-height: 350px;

    display: grid;
    place-items: center;

    color: var(--text-muted);
    text-align: center;
}

.skeleton-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(var(--item-size), 1fr)
        );

    gap: 11px;
}

.skeleton {
    height: calc(
        var(--thumb-height) + 47px
    );

    position: relative;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.64);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.skeleton::after {
    content: "";

    position: absolute;
    inset: 0;

    transform: translateX(-100%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.94),
            transparent
        );

    animation:
        cloud-shimmer 1.1s infinite;
}


/* ============================================================
   MODALES
   ============================================================ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;

    display: grid;
    place-items: center;

    padding: 18px;

    background: rgba(68, 91, 109, 0.38);
    backdrop-filter: blur(9px);
}

.modal {
    width: min(1180px, 100%);
    max-height: calc(100vh - 36px);

    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: #f9fcff;
    border: 1px solid #bad0df;
    border-radius: 21px;

    box-shadow:
        0 30px 90px rgba(35, 62, 82, 0.28);
}

.modal.small {
    width: min(560px, 100%);
}

.modal-header {
    min-height: 61px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 11px 16px;

    background: white;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    min-width: 0;

    margin: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 16px;
}

.modal-body {
    min-height: 0;
    overflow: auto;
    padding: 15px;
}

.viewer-stage {
    min-height: 500px;

    display: grid;
    place-items: center;

    overflow: hidden;

    background: #e8f1f7;
    border-radius: 14px;
}

.viewer-stage img,
.viewer-stage video {
    max-width: 100%;
    max-height: calc(100vh - 145px);

    display: block;
    object-fit: contain;
}


/* ============================================================
   EDITOR DE CÓDIGO · CODEMIRROR
   ============================================================ */

.editor-codemirror-modal {
    width: min(1500px, 100%);
    max-height: calc(100vh - 28px);
    overflow: hidden;
}

.editor-modal-header {
    min-height: 55px;
}

.editor-title-block {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.editor-title-block h3 {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-dirty-badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    color: #8a4f00;
    background: #fff1c7;
    border: 1px solid #edc66c;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.editor-codemirror-toolbar {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    padding: 9px 11px;
    background: #f1f8fd;
    border-bottom: 1px solid var(--border);
}

.editor-toolbar-separator {
    width: 1px;
    height: 28px;
    margin: 0 2px;
    background: var(--border);
}

.editor-line-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.editor-line-group input {
    width: 82px;
    min-height: 34px;
}

.editor-codemirror-host {
    height: min(72vh, 820px);
    min-height: 340px;
    overflow: hidden;
    background: #212121;
    border-top: 1px solid #365064;
    border-bottom: 1px solid #365064;
}

.editor-codemirror-host .CodeMirror {
    width: 100%;
    height: 100%;
    color: #e7eef5;
    background: #212121;
    font-family:
        "Cascadia Code",
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;
    font-size: 13px;
    line-height: 1.55;
}

.editor-codemirror-host .CodeMirror-scroll {
    overscroll-behavior: contain;
}

.editor-codemirror-host .CodeMirror-gutters {
    background: #1b1b1b;
    border-right: 1px solid #3d4c58;
}

.editor-codemirror-host .CodeMirror-linenumber {
    color: #79909e;
}

.editor-codemirror-host .CodeMirror-activeline-background {
    background: rgba(92, 148, 185, 0.12);
}

.editor-codemirror-host .CodeMirror-selected,
.editor-codemirror-host .CodeMirror-focused .CodeMirror-selected {
    background: rgba(74, 144, 226, 0.48) !important;
}

.editor-codemirror-host .CodeMirror-matchingbracket {
    color: #ffffff !important;
    background: rgba(74, 186, 125, 0.35);
    outline: 1px solid rgba(121, 225, 165, 0.65);
}

.editor-codemirror-host .CodeMirror-nonmatchingbracket {
    color: #ffffff !important;
    background: rgba(220, 74, 74, 0.5);
}

.editor-codemirror-host .CodeMirror-cursor {
    border-left: 2px solid #f5fbff;
}

.editor-codemirror-host .CodeMirror-dialog {
    color: var(--text);
    background: #f7fbfe;
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 6px 18px rgba(19, 48, 67, 0.18);
}

.editor-codemirror-host .CodeMirror-dialog input {
    width: min(420px, 60vw);
    min-height: 34px;
    margin: 4px 6px;
    padding: 6px 9px;
    color: var(--text);
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font: inherit;
}

.editor-statusbar {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 7px 11px;
    color: var(--text-muted);
    background: #eef6fc;
    border-top: 1px solid var(--border);
    font-size: 12px;
}

.editor-status-dirty {
    color: #9a5d00;
    font-weight: 750;
}

.editor-status-spacer {
    flex: 1;
}

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 12px;
    background: white;
    border-top: 1px solid var(--border);
}

@media (max-width: 850px) {
    .editor-codemirror-modal {
        max-height: 100vh;
        border-radius: 0;
    }

    .editor-codemirror-host {
        height: calc(100vh - 250px);
        min-height: 260px;
    }

    .editor-toolbar-separator {
        display: none;
    }

    .editor-statusbar {
        gap: 8px;
    }
}


/* ============================================================
   MENÚ CONTEXTUAL, TOAST Y UPLOAD
   ============================================================ */

.context-menu {
    position: fixed;
    z-index: 140;

    min-width: 205px;

    padding: 6px;

    background: white;
    border: 1px solid var(--border-strong);
    border-radius: 12px;

    box-shadow: var(--shadow);
}

.context-menu button {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 10px;

    color: var(--text-soft);
    background: transparent;
    border-radius: 8px;

    text-align: left;
    cursor: pointer;
}

.context-menu button:hover {
    color: var(--text);
    background: var(--surface-blue);
}

.context-menu button.danger {
    color: var(--danger);
}

.toast-stack {
    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 170;

    width: min(
        380px,
        calc(100vw - 36px)
    );

    display: grid;
    gap: 8px;
}

.toast {
    padding: 11px 13px;

    color: var(--text-soft);
    background: white;
    border: 1px solid var(--border-strong);
    border-radius: 12px;

    box-shadow: var(--shadow-small);
}

.toast.error {
    color: var(--danger);
    border-color: #ebb6bc;
}

.upload-panel {
    position: fixed;

    right: 18px;
    bottom: 18px;

    z-index: 160;

    width: min(
        430px,
        calc(100vw - 36px)
    );

    padding: 14px;

    background: white;
    border: 1px solid var(--border-strong);
    border-radius: 15px;

    box-shadow: var(--shadow);
}

.upload-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 8px;
}

.upload-progress {
    height: 8px;

    overflow: hidden;

    margin-top: 10px;

    background: var(--surface-blue);
    border-radius: 999px;
}

.upload-progress span {
    width: 0;
    height: 100%;

    display: block;

    background:
        linear-gradient(
            90deg,
            #65afe4,
            #3188c8
        );

    transition: width 120ms linear;
}


/* ============================================================
   ANIMACIONES
   ============================================================ */

@keyframes folder-item-enter {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes item-created {
    from {
        opacity: 0;
        transform:
            scale(0.86)
            translateY(7px);
    }

    to {
        opacity: 1;
        transform:
            scale(1)
            translateY(0);
    }
}

@keyframes item-removing {
    from {
        opacity: 1;
        transform: scale(1);
        max-height: 500px;
    }

    to {
        opacity: 0;
        transform: scale(0.75);
        max-height: 0;
        margin: 0;
    }
}

@keyframes cloud-shimmer {
    100% {
        transform: translateX(100%);
    }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .topbar-brand strong {
        display: none;
    }

    .search-box {
        width: auto;
        flex: 1;
    }

    .recursive-label span {
        display: none;
    }

    .locations-sidebar {
        position: fixed;

        top: 68px;
        bottom: 0;
        left: 0;

        z-index: 75;

        height: auto;

        box-shadow: var(--shadow);
    }

    .info-drawer {
        left: 10px;
        right: 10px;

        width: auto;
    }
}

@media (max-width: 620px) {
    .breadcrumb {
        display: none;
    }

    .main-area {
        padding: 7px;
    }

    .file-content {
        padding: 8px;
    }

    .view-list .file-card {
        grid-template-columns:
            48px
            minmax(0, 1fr);
    }

    .editor-search-group input {
        width: 130px;
    }
}
