
:root {
    --color-main: #ca0638;
    --color-secondary: #50e3c2; /* Example color */
    --color-background: #f5f5f5; /* Example background color */
}

body {
    font-family: NebulaSans !important;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

p {
    max-width: 65ch;
}

.bg-mainColor {
    background-color: var(--color-main);
}

.color-mainColor {
    color: var(--color-main);
}

.border-colorMain {
    border-color: var(--color-main);
}

.btn-main {
    background-color: var(--color-main);
    color: white;
    border: 0;
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
    font-size: 1.025rem;
    line-height: 1.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.btn-main:focus {
    outline: none;
}

.btn-main:hover {
    background-color: #dc2626;
}

/* Unified back button for admin pages */
.btn-back {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151; /* text-gray-700 */
    background-color: #ffffff; /* white */
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-back:hover {
    background-color: #f9fafb; /* gray-50 */
}

/* Admin heading style */
.admin-heading {
    color: var(--color-main);
    font-size: 1.5rem; /* Tailwind text-2xl */
    line-height: 2rem; /* Tailwind leading-8 */
    font-weight: 600; /* Tailwind font-semibold */
}

input:focus, textarea:focus {
    border-color: var(--color-main) !important;
    box-shadow: 0 0 0 1px var(--color-main) !important;
}

/* Inline-edit: force Tailwind ring color to red-600 on focus, even if Tailwind didn't compile the utility */
.editable-form input:focus,
.editable-form textarea:focus {
    /* Tailwind ring color variable override */
    --tw-ring-color: rgb(220 38 38) !important; /* red-600 */
    /* Fallback box-shadow if ring utilities are purged */
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.5) !important;
    outline: none;
}

.section-divider {
    height: 3px;
    background: linear-gradient(to right, transparent 0%, rgba(34, 197, 94, 0.2) 20%, var(--color-main) 50%, rgba(34, 197, 94, 0.2) 80%, transparent 100%);
    margin: 3rem 0;
    border-radius: 2px;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--color-main);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8), 0 0 0 8px rgba(34, 197, 94, 0.1);
}
