/* EMERGENCY CSS - Fix за белия текст */

/* Най-висока специфичност за всички input полета */
html body div#root * input[type="text"],
html body div#root * input[type="email"], 
html body div#root * input[type="password"],
html body div#root * input[type="search"],
html body div#root * input[type="number"],
html body div#root * input,
html body div#root * select,
html body div#root * textarea {
    color: #000000 !important;
    background-color: #ffffff !important;
    border: 2px solid #333333 !important;
    font-weight: bold !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Placeholder стилове */
html body div#root * input::placeholder,
html body div#root * textarea::placeholder {
    color: #666666 !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #666666 !important;
}

/* Select опции */
html body div#root * select option {
    color: #000000 !important;
    background-color: #ffffff !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Focus състояния */
html body div#root * input:focus,
html body div#root * select:focus,
html body div#root * textarea:focus {
    color: #000000 !important;
    background-color: #ffffff !important;
    border-color: #0066cc !important;
    outline: 2px solid #0066cc !important;
    -webkit-text-fill-color: #000000 !important;
}

/* За всички възможни комбинации от класове */
html body [class*="filter"] input,
html body [class*="filter"] select,
html body [class*="form"] input,
html body [class*="form"] select,
html body [class*="device"] input,
html body [class*="device"] select,
html body [class*="task"] input,
html body [class*="task"] select,
html body [class*="dashboard"] input,
html body [class*="dashboard"] select,
html body [class*="modal"] input,
html body [class*="modal"] select {
    color: #000000 !important;
    background-color: #ffffff !important;
    border: 2px solid #333333 !important;
    font-weight: bold !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Ако има CSS custom properties */
html body div#root * input {
    --input-color: #000000 !important;
    --input-bg: #ffffff !important;
}

/* WebKit autofill hack */
html body div#root * input:-webkit-autofill,
html body div#root * input:-webkit-autofill:hover,
html body div#root * input:-webkit-autofill:focus {
    -webkit-text-fill-color: #000000 !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    background-color: #ffffff !important;
}