/* Custom styles for Church Schedule Management App */

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

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

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Custom focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Modal backdrop blur effect */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Card hover effects */
.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Schedule item hover effect */
.schedule-item {
    transition: all 0.2s ease;
}

.schedule-item:hover {
    transform: translateX(2px);
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3B82F6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-after: always;
    }
    
    body {
        font-size: 12pt;
    }
    
    .schedule-grid {
        display: table;
        width: 100%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .grid-cols-7 {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Status indicators */
.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
}

.status-active {
    background-color: #10B981;
    animation: pulse 2s infinite;
}

.status-inactive {
    background-color: #EF4444;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Conflict warning styles */
.conflict-warning {
    background: linear-gradient(45deg, #FEF3C7, #FDE68A);
    border-left: 4px solid #F59E0B;
}

/* Ministry color badges */
.ministry-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Calendar specific styles */
.calendar-day {
    min-height: 120px;
    position: relative;
}

.calendar-day.today {
    background: linear-gradient(135deg, #EBF8FF, #DBEAFE);
}

.calendar-day.weekend {
    background-color: #F9FAFB;
}

/* Notification styles */
.notification-success {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    border-left: 4px solid #10B981;
}

.notification-error {
    background: linear-gradient(135deg, #FEE2E2, #FCA5A5);
    border-left: 4px solid #EF4444;
}

.notification-info {
    background: linear-gradient(135deg, #DBEAFE, #93C5FD);
    border-left: 4px solid #3B82F6;
}