@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom styles go here */

/* Dialog/Modal styles */
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

dialog {
    border: none;
    padding: 0;
    margin: auto;
}

dialog:not([open]) {
    display: none;
}

input[type="time"] {
    color-scheme: light;
}

.dark input[type="time"] {
    color-scheme: dark;
}

input[type="date"] {
    color-scheme: light;
}

.dark input[type="date"] {
    color-scheme: dark;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.7;
}

.dark input[type="time"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2393c5fd' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.25rem;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 0.7;
}

.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2393c5fd' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3M4 11h16M6 5h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V7a2 2 0 012-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.1rem;
}
