/* Folder System Styling - DEPRECATED (Full-width layout now used) */
/* Kept for backward compatibility if needed */

/* ========================================
   Full-width Materials Container
   ======================================== */
.course-full-width-container {
    width: 100%;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .course-full-width-container {
        padding: 1rem;
    }
}

/* ========================================
   Materials View Switcher (macOS Style)
   ======================================== */
.view-switcher {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.view-toggle {
    display: flex;
    background-color: #f3f4f6;
    border-radius: 0.75rem;
    padding: 0.25rem;
    gap: 0.125rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    background-color: #e5e7eb;
    color: #374151;
}

.view-btn.active {
    background-color: #ffffff;
    color: #059669;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   List View Styling (macOS Finder Style)
   ======================================== */
.materials-list-view {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.material-list-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.material-list-item:hover {
    border-color: #86efac;
    background-color: #f0fdf4;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.material-list-item .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Enhanced Icon Containers
   ======================================== */
.material-card .rounded-2xl,
.material-list-item .rounded-xl {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.material-card:hover .rounded-2xl,
.material-list-item:hover .rounded-xl {
    transform: scale(1.1);
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    background: white;
    border: 2px dashed #e5e7eb;
    border-radius: 2rem;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state svg {
    margin: 0 auto 1rem;
}

.empty-state p {
    font-weight: 600;
    color: #6b7280;
}

.empty-state .text-sm {
    font-weight: 400;
}

/* ========================================
   Materials Wrapper
   ======================================== */
.materials-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.materials-header {
    flex-shrink: 0;
}

.materials-filters {
    flex-shrink: 0;
}

.materials-breadcrumb {
    flex-shrink: 0;
}

.materials-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
    min-height: 400px;
}

/* Responsive search and filter */
@media (max-width: 640px) {
    .materials-filters {
        flex-direction: column;
    }
    
    #search-materials {
        width: 100%;
    }
    
    #filter-type {
        width: 100%;
    }
}

/* Search input styling */
#search-materials {
    transition: all 0.2s ease;
}

#search-materials:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Clear button hover effect */
#clear-search {
    transition: all 0.2s ease;
}

#clear-search:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

/* ========================================
   Additional Utility Classes
   ======================================== */
.shadow-premium {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
                0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Smooth animations for view transitions */
.materials-items {
    transition: all 0.3s ease;
}

/* Badge animations */
.badge {
    transition: all 0.2s;
}

/* Hover effects for info sections */
.material-card .bg-gray-50\/80,
.material-list-item {
    transition: background-color 0.2s;
}

.material-card:hover .bg-gray-50\/80 {
    background-color: #f0fdf4;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .view-switcher {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-toggle {
        justify-content: center;
    }
    
    .btn-add-material {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   File Type Indicators
   ======================================== */
.file-type-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.file-type-pdf {
    background-color: #fee2e2;
    color: #dc2626;
}

.file-type-doc {
    background-color: #dbeafe;
    color: #2563eb;
}

.file-type-xls {
    background-color: #dcfce7;
    color: #16a34a;
}

.file-type-ppt {
    background-color: #ffedd5;
    color: #ea580c;
}

.file-type-img {
    background-color: #f3e8ff;
    color: #9333ea;
}

.file-type-zip {
    background-color: #f3f4f6;
    color: #4b5563;
}
