/* Light & Dark Mode Base */
body.light {
    background: #f4f6f9;
    color: #333;
}

body.dark {
    background: #1e1e1e;
    color: #f0f0f0;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    transition: background 0.3s, color 0.3s;
}

/* Navigation Bar */
.nav {
    background: #2d3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
}

.logout {
    color: #ffdddd;
    margin-left: 15px;
    text-decoration: none;
}

.toggle-btn {
    margin-right: 15px;
    padding: 6px 12px;
    background: #444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.toggle-btn:hover {
    background: #666;
}

/* Layout */
.container {
    max-width: 700px;
    margin: 40px auto;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    transition: background 0.3s;
}

body.dark .card {
    background: #2b2b2b;
}

/* Titles */
.title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: #2d3e50;
}

body.dark .title {
    color: #ddd;
}

/* Inputs */
.input {
    width: 100%;
    padding: 10px;
    margin: 8px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

body.dark .input {
    background: #444;
    color: #eee;
    border-color: #666;
}

/* Buttons */
.btn {
    background: #2d3e50;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn:hover {
    background: #1b2735;
}

/* Drag & Drop Zone */
.drop-zone {
    border: 2px dashed #888;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s, border-color 0.3s;
}

.drop-zone.dragover {
    background: #d0d7e0;
    border-color: #2d3e50;
}

body.dark .drop-zone {
    border-color: #aaa;
}

body.dark .drop-zone.dragover {
    background: #333;
    border-color: #fff;
}

/* Hidden file input */
.hidden-input {
    display: none !important;
}

/* File List */
.file-list {
    list-style: none;
    padding: 0;
}

.file-list li {
    margin: 8px 0;
}

.file-list a {
    color: #2d3e50;
    text-decoration: none;
}

body.dark .file-list a {
    color: #ddd;
}

.file-list a:hover {
    text-decoration: underline;
}

/* Error Text */
.error {
    color: red;
    margin-bottom: 10px;
}
/* Progress Bar Container */
.progress-container {
    width: 100%;
    background: #ccc;
    border-radius: 6px;
    margin-top: 15px;
    height: 12px;
    overflow: hidden;
    transition: background 0.3s;
    pointer-events: none;
}

.progress-container.hidden {
    display: none;
}

/* Progress Bar */
.progress-bar {
    height: 100%;
    width: 0%;
    background: #2d3e50;
    transition: width 0.2s ease;
}

body.dark .progress-container {
    background: #555;
}

body.dark .progress-bar {
    background: #ddd;
}

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

.delete-form {
    margin: 0;
}

.delete-btn {
    background: #b30000;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.delete-btn:hover {
    background: #e60000;
}

body.dark .delete-btn {
    background: #660000;
}

body.dark .delete-btn:hover {
    background: #990000;
}

.mkdir-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mkdir-form .input {
    flex: 1;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    text-align: center;
}

.up-nav {
    margin-bottom: 15px;
}

.up-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #444;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.up-btn:hover {
    background: #666;
}

.search-form {
    margin-bottom: 15px;
}

.search-form input {
    padding: 6px;
    width: 200px;
}

.search-form button {
    padding: 6px 12px;
}

