@charset "UTF-8";
:root {
    --color-primary: #004AAA;
    --color-light-bg: #F5F5F5;
    --color-light-bg-secondary: #FFFFFF;
    --color-light-text: #000000;
    --color-light-text-secondary: #525252;
    --color-light-border: #E5E5E5;

    --color-dark-bg: #1C1C1E;
    --color-dark-bg-secondary: #2C2C2E;
    --color-dark-text: #FFFFFF;
    --color-dark-text-secondary: #A1A1A1;
    --color-dark-border: #3A3A3C;
    
    --theme-primary: var(--color-primary);
    --theme-bg: var(--color-light-bg);
    --theme-bg-secondary: var(--color-light-bg-secondary);
    --theme-text: var(--color-light-text);
    --theme-text-secondary: var(--color-light-text-secondary);
    --theme-border: var(--color-light-border);
}

html.dark {
    --theme-bg: var(--color-dark-bg);
    --theme-bg-secondary: var(--color-dark-bg-secondary);
    --theme-text: var(--color-dark-text);
    --theme-text-secondary: var(--color-dark-text-secondary);
    --theme-border: var(--color-dark-border);
}

body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.font-roboto {
    font-family: 'Roboto', sans-serif;
}

.font-roboto-slab {
    font-family: 'Roboto Slab', serif;
}

.bg-theme-bg { background-color: var(--theme-bg); }
.bg-theme-bg-secondary { background-color: var(--theme-bg-secondary); }
.text-theme-text { color: var(--theme-text); }
.text-theme-text-secondary { color: var(--theme-text-secondary); }
.border-theme-border { border-color: var(--theme-border); }
.bg-theme-primary { background-color: var(--theme-primary); }
.text-theme-primary { color: var(--theme-primary); }
.border-theme-primary { border-color: var(--theme-primary); }

input, textarea, select {
    border: 1px solid var(--theme-border);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 2px rgba(192, 0, 0, 0.2);
}

html.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--theme-text-secondary);
    flex-grow: 1;
    height: 100%;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.tab-button.active {
    color: var(--theme-primary);
}

.tab-button:hover {
    color: var(--theme-primary);
}

.sub-tab-button {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--theme-text-secondary);
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sub-tab-button:hover {
    color: var(--theme-primary);
}

.sub-tab-button.active {
    color: var(--theme-primary);
    border-bottom-color: var(--theme-primary);
}

.item-card {
    background-color: var(--theme-bg-secondary);
    border: 1px solid var(--theme-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.visitor-culto-highlight {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--theme-primary);
}

#main-app {
    display: none !important;
}

#add-item-modal.visible,
#confirm-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

#add-item-modal.visible #modal-content,
#confirm-modal.visible #confirm-modal-content {
    transform: scale(1);
}

button i {
    transition: color 0.2s ease-in-out;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    #app-container {
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
        margin: 0;
    }
    
    .md\:order-first {
        order: -9999;
    }

    .tab-button {
        width: 100%;
        flex-grow: 0;
        padding: 1rem 0;
    }
}
