/* Festalia Custom Styles */
/* Base styles are handled by Tailwind CSS */

:root {
    /* Brand Colors (Ocre Oscuro) */
    --color-primary: #a86010;    
    --color-primary-dark: #8b4a0d;
    --color-secondary: #4b5563;  /* gray-600 */
    --color-bg-body: #f9fafb;    /* gray-50 */
    --color-text-body: #1f2937;  /* gray-800 */
    
    /* UI Elements */
    --border-radius-base: 0.375rem; /* rounded */
    --border-radius-lg: 0.5rem;   /* rounded-lg */
    --transition-speed: 0.2s;
}

/* Custom Utility Classes (that might repeat often) */
.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-base);
    font-weight: 700;
    transition: background-color var(--transition-speed) ease;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

/* Flash Message Fade Out - if manipulated by JS */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

/* Form Styles */
.form-label {
    display: block;
    color: var(--color-text-body);
    font-size: 0.875rem; /* text-sm */
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-input, .form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text-body);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: var(--border-radius-base);
    transition: border-color var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3); /* blue-600 with opacity */
}

/* Table Styles */
.table-container {
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.table-base {
    min-width: 100%;
    border-collapse: collapse;
}

.table-base thead {
    background-color: #f9fafb; /* gray-50 */
}

.table-base th {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem; /* text-xs */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
}

.table-base tbody {
    background-color: #fff;
}

.table-base td {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    font-size: 0.875rem; /* text-sm */
    color: var(--color-text-body);
    border-top: 1px solid #e5e7eb; /* gray-200 */
}

.table-base tr:first-child td {
    border-top: none;
}

/* WYSIWYG Content / Prose Styles */
.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin-top: 1em;
    margin-bottom: 1em;
    padding-left: 1.625em;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.prose blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    font-style: italic;
    color: var(--color-secondary);
    margin: 1em 0;
}

.prose h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    color: var(--color-text-body);
    line-height: 1.3333333;
}
