:root {
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --accent-color: #7e57c2;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --error-color: #f44336;
    --success-color: #4caf50;
}

.file-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--card-bg);
    min-width: 150px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1;
    border: 1px solid #333;
    overflow: hidden;
}

.file-dropdown a {
    display: block;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-bottom: 1px solid #333;
}

.file-dropdown a:last-child {
    border-bottom: none;
}

.file-dropdownu a:hover {
    background-color: rgba(126, 87, 194, 0.15);
    color: var(--accent-color);
}

/* STORAGE INFO */
.storage-info {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.storage-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.storage-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.storage-bar {
    height: 20px;
    background-color: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.storage-used {
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color), #5e35b1);
    transition: width 0.3s ease;
}

.storage-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* UPLOAD SECTION */
.upload-section {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.upload-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.upload-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.drop-area {
    border: 2px dashed var(--accent-color);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(126, 87, 194, 0.05);
}

.drop-area:hover, .drop-area.highlight {
    background-color: rgba(126, 87, 194, 0.1);
}

.drop-area p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.drop-area a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.file-limit {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* FILE LIST */
.files-list {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.files-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.files-list h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #333;
}

th {
    background-color: rgba(126, 87, 194, 0.1);
    font-weight: 600;
    color: var(--accent-color);
}

.file-info {
    display: flex;
    align-items: center;
}

.file-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--accent-color);
}

.file-name {
    color: var(--text-primary);
}

/* ACTIONS */
.actions-container {
    position: relative;
    display: inline-block;
}

.file-actions {
    background: rgba(126, 87, 194, 0.1);
    color: var(--accent-color);
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-actions:hover {
    background: rgba(126, 87, 194, 0.2);
    transform: translateY(-2px);
}



/* MESSAGES */
.error {
    background-color: #2d2d2d;
    border-left: 4px solid var(--error-color);
    border-radius: 6px;
    padding: 16px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.success {
    background-color: #2d2d2d;
    border-left: 4px solid var(--success-color);
    border-radius: 6px;
    padding: 16px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 400px;
    max-width: 80%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.modal-content h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.modal-content input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #2d2d2d;
    color: var(--text-primary);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-buttons button {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-buttons button[type="button"] {
    background-color: transparent;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
}

.modal-buttons button[type="button"]:hover {
    background-color: #2d2d2d;
}

.modal-buttons button[type="submit"] {
    background: linear-gradient(45deg, var(--accent-color), #5e35b1);
    border: none;
    color: white;
}

.modal-buttons button[type="submit"]:hover {
    background: linear-gradient(45deg, #5e35b1, var(--accent-color));
    transform: translateY(-2px);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    .storage-info, .upload-section, .files-list {
        padding: 1.5rem;
    }
    
    .drop-area {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-end;
    }
    
    .user-info span {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 8px 10px;
    }
    
    .file-icon {
        display: none;
    }
    
    .modal-content {
        width: 90%;
        padding: 1.5rem;
    }
}