/* assets/css/style.css */

/* Modern CSS Reset & Core Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    /* Gray 900 */
    line-height: 1.5;
    background-color: #f3f4f6;
    /* Gray 100 */
    -webkit-font-smoothing: antialiased;
}

/* Utilities (Tailwind-like logic for vanilla CSS) */
.hidden {
    display: none !important;
}

/* Position utilities */
.fixed {
    position: fixed;
}

.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Z-index utilities */
.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Overflow utilities */
.overflow-y-auto {
    overflow-y: auto;
}

/* Opacity utilities */
.opacity-75 {
    opacity: 0.75;
}

.opacity-100 {
    opacity: 1;
}

/* Transition utilities */
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transform {
    transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Alignment utilities */
.align-bottom {
    vertical-align: bottom;
}

.align-middle {
    vertical-align: middle;
}

/* Shadow utilities */
.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Max width utilities */
.max-w-lg {
    max-width: 32rem;
}

/* Responsive utilities */
@media (min-width: 640px) {
    .sm\\:my-8 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .sm\\:align-middle {
        vertical-align: middle;
    }

    .sm\\:max-w-lg {
        max-width: 32rem;
    }

    .sm\\:w-full {
        width: 100%;
    }

    .sm\\:p-0 {
        padding: 0;
    }

    .sm\\:p-6 {
        padding: 1.5rem;
    }

    .sm\\:pb-4 {
        padding-bottom: 1rem;
    }

    .sm\\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .sm\\:flex {
        display: flex;
    }

    .sm\\:flex-row-reverse {
        flex-direction: row-reverse;
    }

    .sm\\:inline-block {
        display: inline-block;
    }

    .sm\\:ml-3 {
        margin-left: 0.75rem;
    }

    .sm\\:mt-0 {
        margin-top: 0;
    }

    .sm\\:w-auto {
        width: auto;
    }

    .sm\\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .sm\\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .sm\\:h-screen {
        height: 100vh;
    }

    .sm\\:flex-row {
        flex-direction: row !important;
    }

    .sm\\:justify-between {
        justify-content: space-between !important;
    }

    .sm\\:text-left {
        text-align: left !important;
    }

    .sm\\:text-right {
        text-align: right !important;
    }
}

/* Mobile-first text utilities extensions */
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

@media (min-width: 640px) {
    .sm\\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@media (max-width: 640px) {
    .text-3xl {
        font-size: 1.5rem;
        /* Smaller titles on mobile */
        line-height: 2rem;
    }

    .text-2xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

.block {
    display: block;
}

.flex {
    display: flex !important;
}

.items-center {
    align-items: center !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex-row {
    flex-direction: row !important;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.text-center {
    text-align: center;
}

.w-full {
    width: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.grid {
    display: grid;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Height and Width utilities for icons */
.h-4 {
    height: 1rem;
}

/* 16px */
.w-4 {
    width: 1rem;
}

/* 16px */
.h-5 {
    height: 1.25rem;
}

/* 20px */
.w-5 {
    width: 1.25rem;
}

/* 20px */
.h-6 {
    height: 1.5rem;
}

/* 24px */
.w-6 {
    width: 1.5rem;
}

/* 24px */
.h-10 {
    height: 2.5rem;
}

/* 40px */
.w-10 {
    width: 2.5rem;
}

/* 40px */
.h-12 {
    height: 3rem;
}

/* 48px */
.w-12 {
    width: 3rem;
}

/* 48px */
.h-16 {
    height: 4rem;
}

/* 64px */

/* Flex utilities */
.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-1 {
    flex: 1 1 0%;
}

.inline-flex {
    display: inline-flex;
}

/* Spacing utilities */
.mr-1\.5 {
    margin-right: 0.375rem;
}

/* 6px */
.mr-4 {
    margin-right: 1rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.pt-1 {
    padding-top: 0.25rem;
}

.p-8 {
    padding: 2rem;
}

/* Border utilities */
.border {
    border-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-b-2 {
    border-bottom-width: 2px;
}

.border-transparent {
    border-color: transparent;
}

.border-green-500 {
    border-color: #22c55e;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Text utilities */
.leading-7 {
    line-height: 1.75rem;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Display utilities */
.overflow-hidden {
    overflow: hidden;
}

.divide-y>*+* {
    border-top-width: 1px;
}

.divide-gray-200>*+* {
    border-top-color: #e5e7eb;
}

/* Spacing between items */
.space-x-2>*+* {
    margin-left: 0.5rem;
}

.space-x-6>*+* {
    margin-left: 1.5rem;
}

.space-x-8>*+* {
    margin-left: 2rem;
}

/* Min width */
.min-w-0 {
    min-width: 0;
}

/* Background colors */
.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-indigo-100 {
    background-color: #e0e7ff;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-600 {
    background-color: #16a34a;
}

.bg-green-700 {
    background-color: #15803d;
}

.bg-yellow-100 {
    background-color: #fef3c7;
}

.bg-orange-100 {
    background-color: #ffedd5;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-blue-700 {
    background-color: #1d4ed8;
}

.bg-red-600 {
    background-color: #dc2626;
}

.bg-red-700 {
    background-color: #b91c1c;
}

/* Text colors */
.text-indigo-600 {
    color: #4f46e5;
}

.text-indigo-800 {
    color: #3730a3;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-700 {
    color: #15803d;
}

.text-green-800 {
    color: #166534;
}

.text-green-900 {
    color: #14532d;
}

.text-yellow-800 {
    color: #854d0e;
}

.text-red-800 {
    color: #991b1b;
}

.text-orange-800 {
    color: #9a3412;
}

.text-blue-800 {
    color: #1e40af;
}

.text-blue-600 {
    color: #2563eb;
}

/* Hover states */
.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover\:text-gray-700:hover {
    color: #374151;
}

.hover\:text-indigo-900:hover {
    color: #312e81;
}

.hover\:text-green-700:hover {
    color: #15803d;
}

.hover\:text-green-900:hover {
    color: #14532d;
}

.hover\:bg-green-700:hover {
    background-color: #15803d;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:bg-red-700:hover {
    background-color: #b91c1c;
}

.hover\:border-gray-300:hover {
    border-color: #d1d5db;
}

/* Grid Columns */
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .md\:w-1\/2 {
        width: 50%;
    }
}

@media (min-width: 640px) {
    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Components */

.turnos-card {
    background-color: white;
    border-radius: 0.75rem;
    /* 12px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    /* Reduced for mobile */
    width: 100%;
    max-width: 28rem;
    /* 448px */
    animation: fadeIn 0.4s ease-out;
}

@media (min-width: 640px) {
    .turnos-card {
        padding: 2rem;
        /* Restore for larger screens */
    }
}

.container .turnos-card {
    max-width: none;
    /* In full page setup, card fits container */
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-lg {
    max-width: 32rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input,
.form-textarea,
.form-select {
    appearance: none;
    background-color: #fff;
    border: 1px solid #d1d5db;
    /* Gray 300 */
    border-radius: 0.375rem;
    /* 6px */
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    display: block;
    width: 100%;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #22c55e;
    /* Green 500 */
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    /* Ring Green */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25rem;
    border-radius: 0.5rem;
    /* More rounded */
    padding: 0.75rem 1.25rem;
    /* Increased for touch */
    cursor: pointer;
    transition: all 0.2s;
}

@media (min-width: 640px) {
    .btn {
        padding: 0.5rem 1rem;
        /* Standard for desktop */
    }
}

.btn-primary {
    background-color: #16a34a;
    /* Green 600 */
    color: white;
}

.btn-primary:hover {
    background-color: #15803d;
    /* Green 700 */
}

.btn-primary:active {
    background-color: #14532d;
    /* Green 900 */
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.spinner {
    border: 3px solid #e5e7eb;
    /* Gray 200 */
    border-top: 3px solid #6366f1;
    /* Indigo 500 */
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Font Weights & Colors */
.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-900 {
    color: #111827;
}

.text-indigo-600 {
    color: #4f46e5;
}

.text-red-600 {
    color: #dc2626;
}

.text-white {
    color: #fff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: #ffffff;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Custom Scrollbar for better look */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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