/* Vault Drive UI */
.vault-drive-container {
    font-family: 'Segoe UI', sans-serif;
    background: #f9f9f9;
    padding: 20px;
}

.vault-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.vault-upload {
    border: 2px dashed #0073e6;
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
}

.vault-upload input {
    display: none;
}

.vault-folders {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.vault-folder {
    background: white;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.vault-folder:hover,
.vault-folder.active {
    background-color: #0073e6;
    color: white;
}

.vault-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.vault-file {
    background: white;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.file-name {
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Prevents wrapping by default */
}

@media (max-width: 600px) {
    .file-name {
        font-size: 14px;
        white-space: normal; /* Allow wrapping on mobile */
        word-break: break-word;
    }
}

.file-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.file-actions button {
    flex: 1 1 30%;
    padding: 6px 8px;
    background: #ffffff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 80px;
}

.file-actions button:hover {
    background: #005bb5;
}

@media (max-width: 600px) {
    .file-actions {
        flex-direction: column;
        gap: 6px;
    }

    .file-actions button {
        flex: 1 1 100%;
        font-size: 13px;
        padding: 8px;
    }
}

@media (max-width: 600px) {
    .vault-files {
        grid-template-columns: repeat(auto-fill, minmax(100px, 0.5fr));
    }
}
