*{
    box-sizing:border-box;
}


/* =========================================================
   BODY
========================================================= */

body{
    margin:0;
    min-height:100vh;
    background:#0d1117;
    color:white;
    font-family:Segoe UI,sans-serif;
}


/* =========================================================
   HEADER
========================================================= */

header{
    background:#161b22;
    padding:20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #30363d;
}

header h1{
    margin:0;
    font-size:24px;
}


/* =========================================================
   LOGOUT
========================================================= */

.logout{
    color:white;
    text-decoration:none;
    background:#da3633;
    padding:10px 15px;
    border-radius:10px;
    transition:.2s;
}

.logout:hover{
    background:#f04440;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.container{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:25px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.breadcrumb{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;

    margin-bottom:20px;

    padding:12px 16px;

    background:#161b22;
    border:1px solid #30363d;

    border-radius:12px;

    color:#8b949e;

    font-size:14px;
}

.breadcrumb a{
    color:#58a6ff;
    text-decoration:none;
    transition:.2s;
}

.breadcrumb a:hover{
    color:#79c0ff;
    text-decoration:underline;
}


/* =========================================================
   ACTIONS
========================================================= */

.actions{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.actions button{
    width:auto;
    margin:0;

    background:#238636;

    padding:10px 16px;

    border-radius:10px;

    font-size:14px;

    transition:.2s;
}

.actions button:hover{
    background:#2ea043;
}


/* =========================================================
   STATS
========================================================= */

.stats{
    display:flex;
    gap:20px;
    margin-bottom:20px;
}

.card{
    flex:1;
    background:#161b22;
    border-radius:16px;
    padding:20px;
    border:1px solid #30363d;
}

.card h3{
    margin-top:0;
    margin-bottom:10px;
    color:#8b949e;
    font-size:14px;
    font-weight:500;
}

.card div{
    font-size:24px;
    font-weight:600;
}


/* =========================================================
   DROPZONE
========================================================= */

#dropzone{
    background:#161b22;

    border:3px dashed #58a6ff;

    border-radius:20px;

    padding:50px;

    text-align:center;

    font-size:22px;

    transition:.3s;

    cursor:pointer;

    color:#c9d1d9;
}

#dropzone:hover{
    background:#1a2029;
}

#dropzone.drag{
    background:#1f2937;

    transform:scale(1.02);

    border-color:#2ea043;
}


/* =========================================================
   PROGRESS
========================================================= */

.progress{
    margin-top:20px;

    height:24px;

    background:#222;

    border-radius:30px;

    overflow:hidden;

    display:none;
}

.bar{
    width:0%;

    height:100%;

    background:linear-gradient(
        90deg,
        #58a6ff,
        #2ea043
    );

    transition:width:.1s;
}


/* =========================================================
   STATUS
========================================================= */

.info{
    margin-top:20px;
    color:#aaa;
    min-height:20px;
}


/* =========================================================
   TABLE
========================================================= */

table{
    width:100%;

    margin-top:25px;

    border-collapse:collapse;

    background:#161b22;

    border-radius:16px;

    overflow:hidden;

    border:1px solid #30363d;
}

th{
    background:#21262d;

    color:#c9d1d9;

    font-weight:600;
}

th,td{
    padding:14px;

    text-align:left;
}

tr{
    border-bottom:1px solid #30363d;
}

tr:last-child{
    border-bottom:none;
}

tbody tr:hover{
    background:#1b222c;
}


/* =========================================================
   FILE LINKS
========================================================= */

a.file{
    color:#58a6ff;

    text-decoration:none;

    transition:.2s;
}

a.file:hover{
    color:#79c0ff;
    text-decoration:underline;
}


/* =========================================================
   FOLDERS
========================================================= */

a.folder{
    color:#e3b341;

    font-weight:600;

    text-decoration:none;
}

a.folder:hover{
    color:#f2cc60;

    text-decoration:underline;
}


/* =========================================================
   DELETE
========================================================= */

.delete{
    width:auto;

    background:#da3633;

    border:none;

    color:white;

    padding:8px 12px;

    border-radius:8px;

    cursor:pointer;

    margin:0;

    transition:.2s;
}

.delete:hover{
    background:#f04440;
}

/* =========================================================
   RENAME
========================================================= */
.rename{
    width:auto;

    background:#30363d;

    border:1px solid #484f58;

    color:white;

    padding:8px 10px;

    border-radius:8px;

    cursor:pointer;

    margin:0 5px 0 0;

    transition:.2s;
}

.rename:hover{
    background:#484f58;
}


/* =========================================================
   LOGIN
========================================================= */

.box{
    width:350px;

    background:#161b22;

    padding:30px;

    border-radius:20px;

    box-shadow:
        0 0 40px rgba(0,0,0,.4);

    border:1px solid #30363d;
}


/*
 * Tylko formularz logowania.
 *
 * Nie używamy globalnego:
 *
 * input{}
 *
 * żeby później pola managera
 * nie dostały przypadkowych stylów.
 */

.box input{
    width:100%;

    padding:12px;

    border:none;

    border-radius:10px;

    margin-top:10px;

    background:#0d1117;

    color:white;

    outline:none;
}

.box input:focus{
    box-shadow:
        0 0 0 2px #58a6ff;
}


/* =========================================================
   BUTTONS
========================================================= */

.box button{
    width:100%;

    margin-top:15px;

    border:none;

    padding:12px;

    background:#238636;

    color:white;

    border-radius:10px;

    cursor:pointer;

    transition:.2s;
}

.box button:hover{
    background:#2ea043;
}


/* =========================================================
   ERROR
========================================================= */

.error{
    color:#ff7070;
    margin-top:10px;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:700px){

    header{
        padding:15px;
    }

    header h1{
        font-size:19px;
    }

    .container{
        padding:15px;
    }

    .stats{
        flex-direction:column;
        gap:10px;
    }

    #dropzone{
        padding:35px 15px;
        font-size:18px;
    }

    table{
        font-size:14px;
    }

    th,td{
        padding:10px 7px;
    }

    /*
     * Ukrywamy datę na małych ekranach,
     * żeby tabela nie była zbyt szeroka.
     */

    th:nth-child(3),
    td:nth-child(3){
        display:none;
    }

    .box{
        width:calc(100% - 30px);
    }

}


/* =========================================================
   BARDZO MAŁE EKRANY
========================================================= */

@media(max-width:450px){

    header h1{
        font-size:17px;
    }

    .logout{
        padding:8px 10px;
        font-size:13px;
    }

    .card{
        padding:15px;
    }

    .card div{
        font-size:20px;
    }

    .breadcrumb{
        font-size:13px;
    }

}