/* Inspection Notification Management System - Custom Styles */

/* Tab styling */
.tab-button.active {
    color: #2563eb;
    border-color: #2563eb;
}

/* File upload area */
.border-dashed {
    transition: all 0.3s ease;
}

.border-dashed:hover {
    border-color: #60a5fa;
    background-color: #eff6ff;
}

/* Progress bar animation */
#progressBar {
    transition: width 0.3s ease;
}

/* Table responsive styling */
@media (max-width: 768px) {
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* Enhanced Calendar styling */
.calendar-grid {
    position: relative;
}

.calendar-grid > div {
    min-height: 120px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.calendar-grid > div:hover {
    background-color: #f8fafc;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

/* Multi-day event overlay styling */
.multi-day-overlay {
    pointer-events: none;
}

.multi-day-overlay > div {
    pointer-events: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.multi-day-overlay > div:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Single day events */
.single-day-events > div {
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.single-day-events > div:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Calendar grid responsiveness */
@media (max-width: 1024px) {
    .calendar-grid > div {
        min-height: 100px;
        font-size: 0.875rem;
    }
    
    .multi-day-overlay > div {
        height: 20px !important;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .calendar-grid > div {
        min-height: 80px;
        padding: 0.5rem;
    }
    
    .single-day-events > div {
        font-size: 0.6rem;
        padding: 0.25rem;
    }
    
    .multi-day-overlay > div {
        height: 18px !important;
        font-size: 0.6rem;
    }
}

/* Calendar header gradient */
.calendar-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Enhanced event colors with better contrast and borders */
.event-colors {
    /* Single day events */
    --blue: #3b82f6;
    --green: #10b981;
    --purple: #8b5cf6;
    --orange: #f59e0b;
    --red: #ef4444;
    --indigo: #6366f1;
    
    /* Multi-day events */
    --emerald: #10b981;
    --cyan: #06b6d4;
    --pink: #ec4899;
    --amber: #f59e0b;
    --violet: #8b5cf6;
}

/* Today highlight with subtle animation */
.calendar-grid [data-date] {
    position: relative;
}

.calendar-grid [data-date].today::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border: 2px solid #3b82f6;
    border-radius: 0.25rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Export dialog styling */
.export-dialog {
    backdrop-filter: blur(4px);
}

.export-dialog input[type="radio"]:checked + div {
    color: #3b82f6;
}

/* Delete button styling */
.btn-delete {
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background-color: #fee2e2;
    transform: scale(1.05);
}

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

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Smooth transitions for all interactive elements */
button, .cursor-pointer {
    transition: all 0.2s ease;
}

/* Enhanced table styling */
.table-actions {
    white-space: nowrap;
}

.table-actions button {
    margin-right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

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

/* Loading animation */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom scrollbar for tables */
.overflow-x-auto::-webkit-scrollbar {
    height: 6px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}

/* Message container positioning */
#messageContainer {
    z-index: 1000;
}

/* Form styling */
.form-input {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button animations */
button {
    transition: all 0.2s ease;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
}

/* Card shadow effects */
.card-shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.card-shadow:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}