/* ------------------------------ */
/* GLOBAL STYLES */
/* ------------------------------ */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* ------------------------------ */
/* FOLDERS & FILES LIST */
/* ------------------------------ */
.folder, .file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    border-radius: 5px;
    transition: background 0.2s;
}

.folder:hover, .file:hover {
    background: #eef;
}

.folder span, .file span {
    flex: 1;
}

/* ------------------------------ */
/* BUTTONS */
/* ------------------------------ */
a.button {
    padding: 8px 12px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 5px;
    font-size: 0.9em;
}

a.button:hover {
    background: #0056c7;
}

button {
    padding: 10px 15px;
    background: #28a745;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    margin-top: 5px;
}

button:hover {
    background: #1e7e34;
}

/* ------------------------------ */
/* INPUTS */
/* ------------------------------ */
input[type=text],
input[type=file] {
    padding: 8px;
    width: 100%;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* ------------------------------ */
/* STORAGE CHART */
/* ------------------------------ */
#storageChart {
    display: block;
    margin: 20px auto;
    width: 200px !important;
    height: 200px !important;
}

/* ------------------------------ */
/* DROPZONE / UPLOAD */
/* ------------------------------ */
#dropzone {
    border: 2px dashed #007bff;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    color: #007bff;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s, color 0.2s;
}

#dropzone.dragover {
    background: #e3f2ff;
}

/* PROGRESS BAR */
.progress {
    width: 100%;
    background: #ddd;
    height: 10px;
    border-radius: 5px;
    margin-top: 10px;
    display: none;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: #007bff;
    border-radius: 5px;
}

/* ------------------------------ */
/* DARK MODE (opcional) */
/* ------------------------------ */
body.dark {
    background: #111;
    color: #eee;
}

body.dark .container {
    background: #222;
    color: #eee;
}

body.dark a.button {
    background: #444;
    color: #fff;
}

body.dark #dropzone {
    border-color: #0d6efd;
    color: #0d6efd;
}

body.dark .folder:hover,
body.dark .file:hover {
    background: #333;
}
