/**
 * Media Manager Plugin - Styles
 */

.media-manager-container {
    padding: 20px;
}

.page-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 15px;
}

.page-header h1 {
    color: #2c3e50;
    margin-top: 0;
}

.page-header .lead {
    color: #7f8c8d;
}

/* Statistics Cards */
.stats-row {
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stat-card:nth-child(2) .stat-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) .stat-card {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon {
    font-size: 48px;
    margin-right: 20px;
    opacity: 0.9;
}

.stat-content h3 {
    margin: 0;
    font-size: 32px;
    font-weight: bold;
}

.stat-content p {
    margin: 5px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Actions Bar */
.actions-bar {
    margin-bottom: 30px;
}

.actions-bar .btn {
    margin-right: 10px;
}

/* Folders Section */
.folders-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.folders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.folder-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.folder-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.folder-icon {
    text-align: center;
    color: #3498db;
    margin-bottom: 15px;
}

.folder-info h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.folder-description {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.folder-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 15px;
}

.folder-meta span {
    display: inline-block;
}

.folder-meta i {
    margin-right: 5px;
}

.folder-actions {
    display: flex;
    gap: 5px;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.folder-actions .btn {
    flex: 1;
}

.no-folders {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.no-folders i {
    color: #bdc3c7;
    margin-bottom: 20px;
}

/* File List */
.file-list {
    max-height: 500px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
    transition: background-color 0.2s ease;
}

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

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

.file-icon {
    color: #3498db;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.file-info {
    flex: 1;
}

.file-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #2c3e50;
}

.file-info p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
}

.file-info .badge {
    margin-right: 10px;
}

.file-info span {
    margin-right: 15px;
}

.file-actions {
    min-width: 100px;
    text-align: right;
}

/* Modal Customizations */
.modal-lg {
    max-width: 900px;
}

#uppy-dashboard {
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .folders-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-row {
        margin-bottom: 20px;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .file-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .file-icon {
        margin-bottom: 10px;
    }
    
    .file-actions {
        width: 100%;
        margin-top: 10px;
    }
}

/* Loading State */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
}

.loading-spinner i {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.folder-card {
    animation: fadeIn 0.3s ease;
}

/* Uppy Customizations */
.uppy-Dashboard-inner {
    border: 2px dashed #3498db !important;
}

.uppy-Dashboard-AddFiles-title {
    color: #2c3e50 !important;
}

/* Alert Positioning */
.alert {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
