/* File Upload Component Styles */

.file-upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.file-upload-zone:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.file-upload-zone.drag-over {
    border-color: #007bff;
    background-color: #e3f2fd;
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.upload-icon {
    font-size: 48px;
    color: #007bff;
    opacity: 0.7;
}

.upload-text h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.upload-text p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.upload-text small {
    color: #999;
    font-size: 12px;
}

.upload-browse-btn {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
}

.upload-browse-btn:hover {
    color: #0056b3;
}

/* Progress Bar */
.upload-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background-color: #007bff;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Uploaded Files List */
.uploaded-files {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: white;
}

.uploaded-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.uploaded-file-item:last-child {
    border-bottom: none;
}

.uploaded-file-item:hover {
    background-color: #f8f9fa;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-icon {
    font-size: 24px;
    color: #6c757d;
    min-width: 30px;
    text-align: center;
}

.file-icon .fa-image { color: #28a745; }
.file-icon .fa-file-pdf { color: #dc3545; }
.file-icon .fa-file-word { color: #007bff; }
.file-icon .fa-file-excel { color: #28a745; }
.file-icon .fa-file-alt { color: #6c757d; }

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
    word-break: break-word;
}

.file-size {
    font-size: 12px;
    color: #6c757d;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 10px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    color: #6c757d;
}

.btn-small:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
}

.btn-small.btn-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-small.btn-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* Asset Management Section */
.asset-management {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.asset-management h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.asset-card {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    background: white;
    transition: box-shadow 0.2s ease;
}

.asset-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.asset-type {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.asset-menu {
    position: relative;
}

.asset-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.asset-meta {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-upload-zone {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .upload-text h3 {
        font-size: 16px;
    }
    
    .uploaded-file-item {
        padding: 10px 12px;
    }
    
    .file-info {
        gap: 8px;
    }
    
    .assets-grid {
        grid-template-columns: 1fr;
    }
}

/* Empty State */
.assets-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.assets-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.assets-empty h4 {
    margin: 0 0 8px 0;
    color: #495057;
}

.assets-empty p {
    margin: 0;
    font-size: 14px;
}