/* Custom styling for BIM_XER_Masher */

/* Typography enhancements */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Aspect ratio container for the demo video */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.aspect-w-16 > div {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Drop zone styling */
.border-dashed.border-gray-300:hover {
    border-color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.05);
}

/* Smooth transitions */
a, button, .border-dashed {
    transition: all 0.3s ease;
}

/* Progress indicator for file upload */
.progress-bar {
    width: 100%;
    height: 5px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4f46e5;
    width: 0%;
    transition: width 0.3s ease;
}

/* Alert messages */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.alert-success {
    background-color: #ecfdf5;
    color: #047857;
    border-left: 4px solid #047857;
}

.alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border-left: 4px solid #b91c1c;
}

/* Dashboard styling */
.dashboard-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* File list items */
.file-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    background-color: #f9fafb;
}

.file-item:hover {
    background-color: #f3f4f6;
}

.file-item .file-icon {
    margin-right: 10px;
    color: #4f46e5;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 3px solid #4f46e5;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Dashboard navigation */
.dashboard-nav .active {
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    h1.text-5xl {
        font-size: 2.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
