:root {
    --brand-color: #FF6040;
    --brand-light: #ff80ab;
    --brand-dark: #c60055;
    --brand-bg: #fff5f9;
    --brand-header: #ffe5ef; /* light pink header */
    /* Map Tabler variables to brand */
    --tblr-primary: var(--brand-color);
    --tblr-primary-rgb: 255, 64, 129;
    --tblr-link-color: var(--brand-color);
    --tblr-link-hover-color: var(--brand-dark);
    --tblr-btn-active-bg: var(--brand-dark);
    --tblr-btn-active-border-color: var(--brand-dark);
}

body {
    background-color: var(--brand-bg);
    padding-top: 56px; /* Adjust this value based on your navbar height */
    position: relative;
}

.card {
    border: none;
    box-shadow: 0 1px 2px 0 rgba(255, 64, 129, 0.1);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 64, 129, 0.1);
}

.card-header {
    background-color: var(--brand-header);
    border-bottom: 1px solid rgba(255, 64, 129, 0.15);
    font-weight: 600;
    color: var(--brand-dark);
}

.preview-output {
    min-height: 400px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: none;
    padding: 1.5rem;
    white-space: pre-wrap;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-y: auto;
    width: 100%;
    height: 100%;
}

.btn-primary {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

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

.ts-control {
    border: 1px solid rgba(255, 64, 129, 0.3);
    padding: 0.375rem 0.75rem;
    min-height: 42px;
}

/* Add this new rule for the word types selector */
#word-types {
    min-height: 60px; /* Approximately 2 lines of text */
}

.form-control:focus, .form-select:focus, .ts-control.focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 0.25rem rgba(255, 64, 129, 0.25);
}

.ts-wrapper.multi .ts-control > div {
    background-color: var(--brand-light);
    color: #fff;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 2px;
}

/* Fix dropdown menu z-index and positioning */
.navbar {
    position: fixed;  /* Changed from relative to fixed */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* Higher than most other elements */
    width: 100%;
}

.dropdown-menu {
    z-index: 1040; /* Higher than navbar */
    margin-top: 0.125rem; /* Add small gap between button and menu */
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Ensure dropdown is clickable on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: relative;
        z-index: 1030;
    }
    .dropdown-menu {
        position: static !important;
        float: none;
        margin-left: 1rem;
        width: auto;
    }
}