/*
 * Plugin Name: Commercial Oven Energy Cost & Efficiency Comparator
 * Description: Custom styles for the energy cost comparator plugin. 
 */

/* General Body and Font Styling */
body {
    font-family: 'Inter', sans-serif; /* Using Inter as requested for general text */
    color: #222; /* Dark text color for white backgrounds */
    background-color: #f8f9fa; /* Light background for the page */
}

/* Calculator Container Styling */
.coec-calculator-container {
    max-width: 100%; /* Ensures it takes full available width */
    background-color: #ffffff; /* White background for the calculator */
    border: 1px solid #e0e0e0; /* Subtle border */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Title Styling */
.coec-title {
    color: #E21C00 !important; /* Main brand color */
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E21C00 !important; /* Underline effect */
    display: inline-block; /* To make border-bottom only as wide as text */
    width: auto; /* Adjust width to content */
}

/* Card Styling within the calculator */
.coec-calculator-container .card {
    border: none; /* Remove default card border */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.coec-calculator-container .card:hover {
    transform: translateY(-3px); /* Slight lift effect on hover */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important; /* Enhanced shadow on hover */
}

.coec-card-title {
    color: #222; /* Dark text for card titles */
    font-weight: 600;
    border-bottom: 1px solid #222; /* Subtle separator */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Input Field Styling */
.coec-input {
    border-color: #ced4da; /* Default Bootstrap border color */
    font-size: 0.875rem; /* Smaller font size for inputs */
    padding: 0.375rem 0.75rem; /* Smaller padding */
    height: calc(1.8rem + 2px); /* Adjust height for small inputs */
}

.coec-input:focus {
    border-color: #E21C00 !important; /* Highlight focus with brand color */
    box-shadow: 0 0 0 0.25rem rgba(226, 28, 0, 0.25); /* Subtle shadow on focus */
}

/* Label Styling */
.coec-label {
    font-size: 0.9rem; /* Slightly smaller font for labels */
    font-weight: 500;
    color: #495057; /* Slightly lighter text for labels */
}

/* Checkbox Styling */
.coec-checkbox:checked {
    background-color: #E21C00 !important; /* Brand color for checked checkbox */
    border-color: #E21C00 !important;
}

.coec-checkbox:focus {
    box-shadow: 0 0 0 0.25rem rgba(226, 28, 0, 0.25);
}

/* Button Styling */
.coec-button {
    background-color: inherit !important; /* Main brand color */
    border-color: inherit !important;
    color: #222;
    font-weight: 600;
    font-size: 0.9rem; /* Smaller font size for buttons */
    padding: 0.5rem 1rem; /* Adjust padding for small buttons */
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.coec-button:hover {
    background-color: inherit !important; /* Hover color is the same as main, as requested */
    border-color: inherit !important;
    color: #222;
    transform: translateY(-1px); /* Slight lift on hover */
    box-shadow: 0 0.25rem 0.5rem rgba(226, 28, 0, 0.2); /* Subtle shadow on hover */
}

.coec-button:active {
    background-color: inherit; /* Slightly darker on active/click */
    border-color: inherit;
    color: #222;
    transform: translateY(0); /* Return to original position */
    box-shadow: none;
}

/* Results Section Styling */
.coec-results {
    min-height: 100px; /* Ensure some space even when empty */
    background-color: #fefefe; /* Slightly off-white background for results */
    border: 1px solid #e9ecef; /* Light border */
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.coec-results h6 {
    color: #E21C00 !important; /* Brand color for result headings */
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.coec-results p {
    margin-bottom: 0.5rem;
    color: #343a40;
}

.coec-results .savings-highlight {
    color: #28a745; /* Green for positive savings */
    font-weight: 700;
}

.coec-results .cost-highlight {
    color: #dc3545; /* Red for higher costs */
    font-weight: 700;
}

/* Message Box Styling (for custom alerts) */
.coec-message-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050; /* Above most content */
    width: 90%;
    max-width: 500px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    display: flex; /* Use flexbox for alignment */
    justify-content: space-between; /* Space out content and close button */
    align-items: center; /* Vertically align items */
    padding-right: 1rem; /* Add padding for close button */
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .coec-calculator-container {
        padding: 1rem !important; /* Reduce padding on smaller screens */
        margin: 1rem !important; /* Reduce margin on smaller screens */
    }

    .coec-title {
        font-size: 1.5rem; /* Adjust title size */
    }
}
