/* Pre-initially hide the modal to prevent FOUC and backdrop timing issues */
.modal.pre-init {
    display: none !important;
}


.dropdown-submenu {
    position: relative;
}
.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

/* MODIFIED: Added transition, :focus, and :active states for better UX */
.btn-tan {
    background-color: #a08c6d;
    border-color: #8a7659;
    color: #ffffff;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-tan:hover,
.btn-tan:focus {
    background-color: #8a7659;
    border-color: #75634a;
    color: #ffffff;
}

.btn-tan:active {
    background-color: #75634a;
    border-color: #61513c;
    color: #ffffff;
}

.principles-list {
    list-style-type: none;
    padding-left: 0;
    column-count: 2;
    column-gap: 2rem;
}
.principles-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95em;
}
.principles-list li strong {
    color: var(--accent-color);
}
@media (max-width: 768px) { .principles-list { column-count: 1; } }
.speaking-sentence {
    background-color: var(--bs-warning-bg-subtle, #fff3cd);
    transition: background-color 0.2s ease-in-out;
    border-radius: 3px;
}
.download-rune-svg-btn, .download-qr-btn {
    line-height: 1;
    padding: 0.2rem 0.4rem;
}
/* MODIFIED: Increased min-height to accommodate stacked runes */
.rune-display-p {
    min-height: 9em; 
    display: flex;
    align-items: center;
}
/* MODIFIED: Line height for stacked runes */
.rune-sequence {
    margin-right: 0.5rem;
    white-space: pre-wrap;
    line-height: 1.6; /* Improved line spacing for stacked runes */
    font-size: 1.1em; /* Slightly larger runes */
}
.qr-code-container {
    width: 200px;
    height: 200px;
    border: 1px solid #ddd;
    padding: 4px;
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-code-container img, .qr-code-container canvas {
    width: 100% !important;
    height: 100% !important;
}
/* Additional styles for the app wrapper if needed */
#blueprint-cosmos-app-wrapper {
    /* You can add theme-independent styles here */
}
