/* Custom CSS for fixing white text and styling HTML content */

/* Ensure all text in product description and details is visible */
.product-description,
.product-description *:not(a):not(strong):not(b),
.product-details,
.product-details *:not(a):not(strong):not(b) {
    color: #6c757d !important;
}

/* Fix text color for content areas */
.bg-light .product-description,
.bg-light .product-details,
.bg-light p,
.bg-light div,
.bg-light span,
.bg-light ul,
.bg-light ol,
.bg-light li {
    color: #6c757d !important;
}

/* Ensure headers are visible */
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: #212529 !important;
}

/* Fix text colors in summernote content */
.text-black-50,
.text-black-50 *,
.text-black-50 p,
.text-black-50 div,
.text-black-50 span,
.text-black-50 ul,
.text-black-50 ol,
.text-black-50 li {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Ensure links are visible */
.product-description a,
.product-details a {
    color: #0d6efd !important;
    text-decoration: underline;
}

/* Style lists properly */
.product-description ul,
.product-details ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.product-description ol,
.product-details ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 10px;
}

.product-description li,
.product-details li {
    margin-bottom: 5px;
}

/* Style tables */
.product-description table,
.product-details table {
    width: 100%;
    margin-bottom: 15px;
    border-collapse: collapse;
}

.product-description table td,
.product-description table th,
.product-details table td,
.product-details table th {
    border: 1px solid #dee2e6;
    padding: 8px;
    color: #212529 !important;
}

/* Add proper spacing for paragraphs */
.product-description p,
.product-details p {
    margin-bottom: 10px;
}

/* Style strong/bold text */
.product-description strong,
.product-description b,
.product-details strong,
.product-details b {
    font-weight: bold;
    color: #212529 !important;
}

/* Style italic text */
.product-description em,
.product-description i,
.product-details em,
.product-details i {
    font-style: italic;
}

/* Remove any white color from content */
.product-description [style*="color: white"],
.product-description [style*="color: #fff"],
.product-description [style*="color: #ffffff"],
.product-description [style*="color:white"],
.product-description [style*="color:#fff"],
.product-description [style*="color:#ffffff"],
.product-details [style*="color: white"],
.product-details [style*="color: #fff"],
.product-details [style*="color: #ffffff"],
.product-details [style*="color:white"],
.product-details [style*="color:#fff"],
.product-details [style*="color:#ffffff"] {
    color: #6c757d !important;
}

/* Ensure base font size and line height */
.product-description,
.product-details {
    font-size: 1rem;
    line-height: 1.6;
    color: #6c757d;
}

/* Make sure the content is readable */
.product-description p:empty,
.product-details p:empty {
    display: none;
}

/* Add spacing between elements */
.product-description > *:not(:last-child),
.product-details > *:not(:last-child) {
    margin-bottom: 1rem;
}

/* Contact Form Styling Fixes */
/* Fix white text color in contact form inputs */
.contact-input,
.contact-input::placeholder {
    color: #212529 !important;
}

.contact-input:focus {
    color: #212529 !important;
    background-color: #fff !important;
}

/* Change focus highlight from green to light blue (secondary color) */
.contact-input:focus,
.form-control:focus {
    border-color: #6ec1e4 !important;
    box-shadow: 0 0 0 0.2rem rgba(110, 193, 228, 0.25) !important;
}

/* Ensure placeholder text is visible */
.contact-input::placeholder {
    color: #6c757d !important;
    opacity: 0.7;
}

/* Fix textarea specific styling */
textarea.contact-input {
    color: #212529 !important;
}

/* Remove any autofill background */
.contact-input:-webkit-autofill,
.contact-input:-webkit-autofill:hover,
.contact-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #212529 !important;
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Ensure inputs in bg-light are visible */
.bg-light .form-control,
.bg-light input,
.bg-light textarea {
    background-color: #fff !important;
    color: #212529 !important;
    border: 1px solid #ced4da;
}

.bg-light .form-control:focus,
.bg-light input:focus,
.bg-light textarea:focus {
    background-color: #fff !important;
    color: #212529 !important;
    border-color: #6ec1e4 !important;
    box-shadow: 0 0 0 0.2rem rgba(110, 193, 228, 0.25) !important;
}

/* Button hover state - Light Blue for all buttons */
.btn-primary:hover,
.btn-primary:focus,
.btn:hover,
a.btn:hover,
button.btn:hover {
    background-color: #6ec1e4 !important;
    border-color: #6ec1e4 !important;
}

/* Specific button types */
.btn-dark:hover,
.btn-dark:focus {
    background-color: #6ec1e4 !important;
    border-color: #6ec1e4 !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: #6ec1e4 !important;
    border-color: #6ec1e4 !important;
    color: #fff !important;
}

/* Product and blog items hover */
.product-item:hover a.btn,
.blog-item:hover a.btn {
    background-color: #6ec1e4 !important;
    border-color: #6ec1e4 !important;
    color: #fff !important;
}

/* Fix white text in contact section details */
.ms-3 small,
.ms-3 h6,
#contact small,
#contact .ms-3 * {
    color: #212529 !important;
}

/* Ensure all small text is visible */
small {
    color: #6c757d !important;
}

/* Fix any text that might be white */
.text-white-fix {
    color: #212529 !important;
}

/* Override any inline white color */
[style*="color: white"],
[style*="color: #fff"],
[style*="color: #ffffff"] {
    color: #212529 !important;
}

/* Language Switcher Icon Button Styling */
.language-switcher .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.language-switcher .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.language-switcher .btn-outline-light i {
    color: #fff;
    transition: all 0.3s ease;
}

.language-switcher .btn-outline-light:hover i {
    transform: rotate(15deg);
}

.language-switcher .dropdown-menu {
    min-width: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.language-switcher .dropdown-item {
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.language-switcher .dropdown-item:hover {
    background-color: #f8f9fa;
    padding-left: 20px;
}

.language-switcher .dropdown-item.active {
    background-color: #0d6efd;
    color: #fff;
}

.language-switcher .dropdown-item.active:hover {
    background-color: #0b5ed7;
}

/* Language Switcher Positioning */
.language-switcher {
    display: inline-block;
}

/* Mobile responsive */
@media (max-width: 991px) {
    .language-switcher {
        margin-top: 10px;
    }
}

