@layer tailwind-base, primevue, tailwind-utilities;

@layer tailwind-base {
    @tailwind base;
}

@layer tailwind-utilities {
    @tailwind components;
    @tailwind utilities;
}

html {
    background-color: white;
    min-height: 100vh;
    max-height: 100vh;
    min-width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

/* PrimeVue Float Label Fixes */
.p-float-label input:focus ~ label,
.p-float-label input.p-filled ~ label,
.p-float-label textarea:focus ~ label,
.p-float-label textarea.p-filled ~ label,
.p-float-label .p-inputwrapper-focus ~ label,
.p-float-label .p-inputwrapper-filled ~ label {
    top: -0.75rem;
    font-size: 12px;
    background-color: white;
    padding: 2px 4px;
}

.p-float-label label {
    position: absolute;
    pointer-events: none;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s ease all;
}

/* Ensure PrimeVue components take Tailwind classes */
.p-component {
    @apply font-sans;
}

.p-tablist-active-bar {
    display: none;
}

.p-tablist .p-tablist-tab-list {
    padding: 0.4rem;
    gap: 0.5rem;
    border: 0;
    border-radius: 0.5rem;
    background-color: theme('colors.gray.100');
}

.p-tablist .p-tab {
    padding: 10px;
    border-radius: 0.5rem;
    background-color: theme('colors.gray.50');
    border: 0;
}

.p-tablist .p-tab:hover {
    background-color: theme('colors.gray.200');
}

.p-tablist .p-tab.p-tab-active {
    background-color: theme('colors.gray.900');
    color: white;
}

.p-tabpanels {
    padding: 0;
    padding-top: var(--p-tabs-tabpanel-padding);
}
