/**
 * PreOrder Manager Public - Force Light Mode
 * Ensures all UI elements render in light mode regardless of system preference
 */

/* Force light color scheme */
.preorder-portal,
.preorder-portal * {
	color-scheme: light !important;
}

/* Text colors */
.preorder-portal {
	color: #333 !important;
	background-color: transparent !important;
}

.preorder-portal p,
.preorder-portal span,
.preorder-portal a,
.preorder-portal label,
.preorder-portal h1,
.preorder-portal h2,
.preorder-portal h3,
.preorder-portal h4,
.preorder-portal h5,
.preorder-portal h6 {
	color: #333 !important;
}

/* Headings */
.preorder-portal h2,
.preorder-portal h3,
.preorder-portal h4,
.preorder-portal h5,
.preorder-portal h6 {
	color: #000 !important;
}

/* Links */
.preorder-portal a {
	color: #007bff !important;
}

.preorder-portal a:hover {
	color: #0056b3 !important;
}

/* Form elements */
.preorder-portal .form-control,
.preorder-portal .form-select,
.preorder-portal textarea,
.preorder-portal input[type="text"],
.preorder-portal input[type="email"],
.preorder-portal input[type="tel"],
.preorder-portal input[type="date"],
.preorder-portal input[type="number"],
.preorder-portal input[type="password"],
.preorder-portal input[type="search"],
.preorder-portal input[type="url"] {
	background-color: #fff !important;
	color: #333 !important;
	border-color: #ddd !important;
}

.preorder-portal .form-control:focus,
.preorder-portal .form-select:focus,
.preorder-portal textarea:focus,
.preorder-portal input:focus {
	background-color: #fff !important;
	color: #333 !important;
	border-color: #80bdff !important;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.preorder-portal .form-control::placeholder,
.preorder-portal textarea::placeholder,
.preorder-portal input::placeholder {
	color: #999 !important;
}

/* Product cards */
.preorder-portal .product-card {
	background-color: #fff !important;
	color: #333 !important;
	border-color: #e0e0e0 !important;
}

.preorder-portal .product-image {
	background-color: #f8f9fa !important;
}

.preorder-portal .product-name {
	color: #000 !important;
}

.preorder-portal .product-description {
	color: #666 !important;
}

.preorder-portal .product-price {
	color: #28a745 !important;
}

.preorder-portal .stock-info {
	color: #666 !important;
}

/* Quantity selector */
.preorder-portal .quantity-selector label {
	color: #000 !important;
}

.preorder-portal .quantity-select {
	background-color: #fff !important;
	color: #333 !important;
	border-color: #e0e0e0 !important;
}

/* Buttons */
.preorder-portal .btn {
	color: #fff !important;
}

.preorder-portal .btn-primary {
	background-color: #007bff !important;
	border-color: #0056b3 !important;
	color: #fff !important;
}

.preorder-portal .btn-primary:hover {
	background-color: #0056b3 !important;
	border-color: #004085 !important;
	color: #fff !important;
}

.preorder-portal .btn-success {
	background-color: #28a745 !important;
	border-color: #1e7e34 !important;
	color: #fff !important;
}

.preorder-portal .btn-success:hover {
	background-color: #218838 !important;
	border-color: #1e7e34 !important;
	color: #fff !important;
}

.preorder-portal .btn:disabled {
	background-color: #ccc !important;
	border-color: #bbb !important;
	color: #999 !important;
}

/* Cart section */
.preorder-portal .cart-section {
	background-color: #fff !important;
	color: #333 !important;
	border-color: #e0e0e0 !important;
}

.preorder-portal .cart-item {
	border-color: #f0f0f0 !important;
}

.preorder-portal .cart-item-name {
	color: #000 !important;
}

.preorder-portal .cart-item-details {
	color: #666 !important;
}

.preorder-portal .cart-item-price {
	color: #28a745 !important;
}

.preorder-portal .cart-total {
	color: #000 !important;
}

.preorder-portal .cart-total span {
	color: #28a745 !important;
}

/* Cart item remove button */
.preorder-portal .cart-item-remove {
	background-color: #dc3545 !important;
	color: #fff !important;
	border-color: #c82333 !important;
}

.preorder-portal .cart-item-remove:hover {
	background-color: #c82333 !important;
	border-color: #bd2130 !important;
}

/* Badges */
.preorder-portal .badge {
	color: #fff !important;
}

.preorder-portal .badge.bg-success {
	background-color: #28a745 !important;
	color: #fff !important;
}

.preorder-portal .badge.bg-warning {
	background-color: #ffc107 !important;
	color: #000 !important;
}

.preorder-portal .badge.bg-danger {
	background-color: #dc3545 !important;
	color: #fff !important;
}

.preorder-portal .badge.bg-primary {
	background-color: #007bff !important;
	color: #fff !important;
}

/* Alerts */
.preorder-portal .alert {
	background-color: #fff !important;
	color: #333 !important;
	border-color: #ddd !important;
}

.preorder-portal .alert-warning {
	background-color: #fff3cd !important;
	color: #856404 !important;
	border-color: #ffeaa7 !important;
}

.preorder-portal .alert-danger {
	background-color: #f8d7da !important;
	color: #721c24 !important;
	border-color: #f5c6cb !important;
}

.preorder-portal .alert-success {
	background-color: #d4edda !important;
	color: #155724 !important;
	border-color: #c3e6cb !important;
}

.preorder-portal .alert-info {
	background-color: #d1ecf1 !important;
	color: #0c5460 !important;
	border-color: #bee5eb !important;
}

/* Backorder warning */
.preorder-portal .backorder-warning .alert {
	background-color: #fff3cd !important;
	color: #856404 !important;
	border-color: #ffeaa7 !important;
}

/* Customer info section */
.preorder-portal .customer-info h5 {
	color: #000 !important;
}

.preorder-portal .form-check-label {
	color: #333 !important;
}

.preorder-portal .form-check-input {
	background-color: #fff !important;
	border-color: #ddd !important;
}

.preorder-portal .form-check-input:checked {
	background-color: #007bff !important;
	border-color: #007bff !important;
}

/* Text utilities */
.preorder-portal .text-muted {
	color: #666 !important;
}

.preorder-portal .text-success {
	color: #28a745 !important;
}

.preorder-portal .text-danger {
	color: #dc3545 !important;
}

.preorder-portal .text-warning {
	color: #ffc107 !important;
}

.preorder-portal .text-info {
	color: #17a2b8 !important;
}

/* Empty cart state */
.preorder-portal .empty-cart {
	color: #666 !important;
}

.preorder-portal .empty-cart-icon {
	opacity: 0.5;
}

/* Success message */
.preorder-portal .success-message {
	background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
	color: #fff !important;
}

.preorder-portal .success-message h3 {
	color: #fff !important;
}

.preorder-portal .order-number {
	color: #fff !important;
	background: rgba(255, 255, 255, 0.2) !important;
}

/* Section headings */
.preorder-portal .products-section h3,
.preorder-portal .cart-section h3 {
	color: #000 !important;
	border-color: #667eea !important;
}

/* Header section */
.preorder-portal .preorder-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	color: #fff !important;
}

.preorder-portal .preorder-header h2 {
	color: #fff !important;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.preorder-portal .preorder-header .sale-date {
	color: rgba(255, 255, 255, 0.9) !important;
}

.preorder-portal .preorder-header strong {
	color: #ffd700 !important;
}

/* Bootstrap grid utilities */
.preorder-portal .row {
	background-color: transparent !important;
}

.preorder-portal .col-lg-8,
.preorder-portal .col-lg-4 {
	background-color: transparent !important;
}

/* Ensure all text is readable */
.preorder-portal .btn-close {
	filter: invert(1) !important;
}

/* Dismissible alerts */
.preorder-portal .alert-dismissible .btn-close {
	filter: none !important;
	opacity: 0.5;
}

.preorder-portal .alert-dismissible .btn-close:hover {
	opacity: 0.75;
}

/* Focus states for accessibility */
.preorder-portal button:focus,
.preorder-portal input:focus,
.preorder-portal select:focus,
.preorder-portal a:focus {
	outline: 2px solid #007bff !important;
	outline-offset: 2px !important;
}

/* Ensure background images don't interfere */
.preorder-portal .product-image {
	background-image: none !important;
	background-color: #f8f9fa !important;
}
