/* css/documentos.css */
.btn-upload {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    transition: var(--transition);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    margin-top: 20px;
}

.folders-sidebar {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.folder-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.folder-list li {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
}

.folder-list li:hover {
    background: rgba(255,255,255,0.05);
}

.folder-list li.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary-color);
    font-weight: 600;
}

.folder-list li i {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.storage-info {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
}

.storage-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.storage-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.storage-fill {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 10px;
}

/* Files Main Area */
.files-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-files h3, .files-list-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.file-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.file-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-color: rgba(6, 182, 212, 0.2);
}

.file-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.bg-pdf { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.bg-img { background: rgba(34, 197, 94, 0.1); color: #22C55E; }
.bg-excel { background: rgba(16, 185, 129, 0.1); color: #10B981; }

.file-info h4 {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 5px 0;
}

.file-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.file-actions button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.file-actions button:hover {
    color: white;
}

.table-responsive {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.files-table {
    width: 100%;
    border-collapse: collapse;
}

.files-table th, .files-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.files-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.files-table td {
    font-size: 0.95rem;
}

.files-table tr:last-child td {
    border-bottom: none;
}

.files-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.td-file {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.btn-icon-soft {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-soft:hover {
    color: white;
}

.mt-4 { margin-top: 1.5rem; }

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
}
