.cliente-file-area {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Section */
.header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.header-section h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
}

.user-info p {
    margin: 5px 0;
    font-size: 16px;
}

.category-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* No Files Message */
.no-files-message {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-files-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.no-files-message h4 {
    color: #666;
    margin-bottom: 10px;
    font-size: 20px;
}

/* Files Section */
.files-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.files-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* Filters */
.files-filters {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

#search-files {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

#search-files:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

#sort-files {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* Files List */
.files-list {
    display: grid;
    gap: 15px;
}

.file-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.file-item:hover {
    border-color: #667eea;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.file-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-info {
    min-width: 0;
}

.file-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-details {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.file-size {
    background: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.file-date {
    color: #666;
    font-size: 13px;
}

.download-count {
    background: #fff3e0;
    color: #f57c00;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.file-access-info {
    display: flex;
    gap: 8px;
}

.access-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.access-badge.public {
    background: #e8f5e8;
    color: #2e7d32;
}

.access-badge.category {
    background: #fff3e0;
    color: #f57c00;
}

.access-badge.private {
    background: #fce4ec;
    color: #c2185b;
}

/* Download Button */
.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.download-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.download-btn.downloading {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Highlighting */
mark {
    background: #ffeb3b;
    padding: 1px 2px;
    border-radius: 2px;
    color: #333;
}

/* Responsividade */
@media (max-width: 768px) {
    .cliente-file-area {
        margin: 10px;
    }
    
    .header-section {
        padding: 20px 15px;
    }
    
    .header-section > div {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .stats-section {
        grid-template-columns: 1fr;
    }
    
    .files-filters {
        grid-template-columns: 1fr;
    }
    
    .file-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .file-details {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-section h3 {
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .file-item {
        padding: 15px;
    }
    
    .download-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
