/* Custom styles for calendar week application */

/* Smooth transitions for interactive elements */
.transition-all {
    transition: all 0.2s ease-in-out;
}

/* Enhanced focus styles for better accessibility */
input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/* Animation for result section */
#resultSection {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Mobile responsiveness improvements */
@media (max-width: 480px) {
    /* Override Tailwind classes for better mobile experience */
    body {
        padding: 0.125rem !important;
    }    

    /* Make text more readable on small screens */
    .text-4xl {
        font-size: 2.25rem;
    }

    
    /* Adjust button spacing for tiny screens */
    .flex.gap-3 {
        gap: 0.5rem !important;
    }
    
    /* Make buttons smaller on very small screens */
    #prevWeeksBtn, #nextWeeksBtn, #currentWeekBtn {
        font-size: 0.8125rem !important;
        padding: 0.375rem 0.5rem !important;
    }
}

/* Mobile date input layout - label and input on same line */
@media (max-width: 1024px) {
 .date-input-container {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    
    .date-input-container label {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        font-size: 0.875rem !important;
        white-space: nowrap !important;
    }
    
    .date-input-container input {
        flex: 1 !important;
        min-width: 0 !important;
    }   
}

 

/* Calendar table mobile responsiveness */
@media (max-width: 768px) {
    /* Fix mobile layout and use full screen width */
    body {
        padding: 0.25rem;
    }
    
    .container {
        padding: 0;
        max-width: 100%;
    }
    
    /* Stack navigation buttons on mobile */
    #prevWeeksBtn, #nextWeeksBtn, #currentWeekBtn {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Smaller table text on mobile */
    table th, table td {
        font-size: 0.75rem;
        padding: 0.375rem 0.25rem;
    }
    
    /* Adjust table header padding */
    table th:first-child,
    table td:first-child {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Optionally, invert only in dark mode */
@media (prefers-color-scheme: dark) {
  input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
  }
}