/* Solar Projects App - Main Styles */

body { 
    font-family: 'Inter', sans-serif; 
}

/* Table and List Styles */
.table-header-sortable { 
    cursor: pointer; 
    user-select: none; 
}

.table-header-sortable:hover { 
    background-color: #e5e7eb; 
}

.sort-indicator { 
    display: inline-block; 
    width: 16px; 
    height: 16px; 
    margin-left: 4px; 
    opacity: 0.5; 
    transition: opacity 0.2s, transform 0.2s; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5M7 9l5-5 5 5'/%3E%3C/svg%3E"); 
    background-size: contain; 
    background-repeat: no-repeat; 
}

.sort-indicator.active { 
    opacity: 1; 
}

.sort-indicator.asc { 
    transform: rotate(180deg); 
}

.sort-indicator.desc { 
    transform: rotate(0deg); 
}

/* Modal Styles */
.modal-backdrop { 
    background-color: rgba(0, 0, 0, 0.5); 
    transition: opacity 0.3s ease; 
}

.modal-content { 
    transition: transform 0.3s ease; 
}

/* Loading State */
.loading { 
    opacity: 0.6; 
    pointer-events: none; 
}


/* Project List Styles */
.project-item {
    transition: all 0.3s ease;
}

.project-item:hover {
    background-color: #f9fafb;
}

.project-item.expanded {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sort Button Styles */
.sort-btn {
    transition: all 0.2s ease;
}

.sort-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sort-btn.active {
    background-color: #3b82f6;
    color: white;
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideDown {
    from { max-height: 0; opacity: 0; }
    to { max-height: 500px; opacity: 1; }
}

.slide-down {
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1rem;
}

/* Button Hover Effects */
.btn-hover-lift {
    transition: all 0.2s ease;
}

.btn-hover-lift:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .mobile-full-width {
        width: 100%;
    }
    
    .mobile-text-center {
        text-align: center;
    }
    
    .mobile-hidden {
        display: none;
    }
    
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-gap-2 > * + * {
        margin-top: 0.5rem;
    }
}
