/* Glassmorphism overrides */
.container {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Text colors */
header p,
label {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Inputs and Textareas */
textarea,
.radio-group {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: white !important;
}

textarea:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Radio buttons */
.radio-group label {
    color: rgba(255, 255, 255, 0.85);
}

.radio-group label:has(input:checked) {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.radio-group {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Alert box for slug creation */
.alert {
    background: rgba(99, 102, 241, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Footer links */
footer {
    border-top-color: rgba(255, 255, 255, 0.2) !important;
}

footer a,
footer {
    color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover {
    color: white !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Language Selector overrides */
.home-lang-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

.home-lang-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.home-lang-dropdown {
    background: rgba(30, 41, 59, 0.95) !important;
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.home-lang-dropdown a {
    color: #cbd5e1 !important;
}

.home-lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.home-lang-dropdown a.active {
    background: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
}

/* Quill Editor Overrides */
.ql-toolbar {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-bottom: none !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.ql-container {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    color: white !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
}

.ql-editor.ql-blank::before {
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: normal !important;
}

.ql-stroke {
    stroke: rgba(255, 255, 255, 0.8) !important;
}

.ql-fill {
    fill: rgba(255, 255, 255, 0.8) !important;
}

.ql-picker {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Dropdowns in toolbar */
.ql-picker-options {
    background-color: #1e293b !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.home-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

.home-lang-btn:hover {
    background: #e2e8f0;
}

.home-lang-dropdown {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 100;
}

.home-lang-wrap:hover .home-lang-dropdown {
    opacity: 1;
    visibility: visible;
}

.home-lang-dropdown a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #475569;
    font-size: 0.85rem;
}

.home-lang-dropdown a:hover {
    background: #f1f5f9;
}

.home-lang-dropdown a.active {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 600;
}
