/* Custom Styles */
.active-tab {
    border-bottom: 2px solid #3b82f6; /* blue-500 */
    color: #3b82f6;
}

#profile-dropdown {
    display: none;
}

/* --- DYNAMIC, COLOR-CODED PULSE ANIMATIONS --- */

@keyframes pulse-yellow-background {
    0%, 100% { background-color: #fefce8; border-color: #fde047; } /* yellow-50, yellow-300 */
    50% { background-color: #fef9c3; border-color: #eab308; } /* yellow-100, yellow-500 */
}
.request-card.animate-pulse-yellow {
    animation: pulse-yellow-background 1.5s infinite ease-in-out;
    border-width: 2px; border-style: solid;
}

@keyframes pulse-orange-background {
    0%, 100% { background-color: #fff7ed; border-color: #fdba74; } /* orange-50, orange-300 */
    50% { background-color: #ffedd5; border-color: #f97316; } /* orange-100, orange-500 */
}
.request-card.animate-pulse-orange {
    animation: pulse-orange-background 1.5s infinite ease-in-out;
    border-width: 2px; border-style: solid;
}

@keyframes pulse-red-background {
    0%, 100% { background-color: #fef2f2; border-color: #fca5a5; } /* red-50, red-300 */
    50% { background-color: #fee2e2; border-color: #ef4444; } /* red-100, red-500 */
}
.request-card.animate-pulse-red {
    animation: pulse-red-background 1.5s infinite ease-in-out;
    border-width: 2px; border-style: solid;
}

/* --- DIMMED BACKGROUNDS FOR CLOSED ITEMS --- */
.closed-status-green { background-color: #f0fdf4; } /* green-50 */
.closed-status-yellow { background-color: #fefce8; } /* yellow-50 */
.closed-status-orange { background-color: #fff7ed; } /* orange-50 */
.closed-status-red { background-color: #fef2f2; }   /* red-50 */

/* --- IMAGE UPLOAD WIDGET --- */
.image-upload-slot {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border: 2px dashed #d1d5db;
    border-radius: .375rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}
.image-upload-slot:hover { background-color: #f9fafb; }
.image-upload-slot .image-label {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; justify-content: center; align-items: center;
    text-align: center; padding: .5rem; cursor: pointer; color: #4b5563;
}
.image-upload-slot .preview-container {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: none;
}
.thumbnail { width: 100%; height: 100%; object-fit: cover; border-radius: .375rem; }
.remove-btn {
    position: absolute; top: -0.5rem; right: -0.5rem;
    background-color: #ef4444; color: white;
    border: 2px solid white; border-radius: 9999px;
    width: 1.75rem; height: 1.75rem; font-size: 1rem;
    line-height: 1.5rem; text-align: center;
    cursor: pointer; font-weight: bold;
    display: flex; justify-content: center; align-items: center;
}
.progress-bar-container {
    width: 100%; background-color: #e5e7eb; border-radius: 5px;
    position: relative; height: 24px; margin-top: 10px;
    display: none;
}
.progress-bar {
    width: 0%; height: 100%; background-color: #4f46e5; border-radius: 5px;
    transition: width 0.3s ease-in-out;
}
.progress-text {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    text-align: center; line-height: 24px; color: #1f2937; font-weight: bold;
}
.progress-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    border-radius: .375rem;
    display: none; /* Hidden by default */
}
.progress-indicator {
    /* Simple spinner */
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}
.progress-value {
    margin-top: 8px; font-size: 0.875rem; color: #1f2937;
    font-weight: 500;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
