/* General Body & Typography */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    color: #374151;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styling */
.main-header {
    position: fixed; /* Make header sticky */
    top: 0; /* Position at the top */
    width: 100%; /* Full width */
    height: 80px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    background: linear-gradient(90deg, #10B981, #34D399, #10B981);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it stays on top */
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Footer Styling */
.footer-bg {
    background-color: #1f2937;
}

/* Input Fields & Buttons */
input[type="text"],
textarea,
select {
    padding: 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem; /* Tailwind rounded-md */
    font-size: 1em;
    color: #374151;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    border-color: #10B981; /* Tailwind green-500 */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); /* green-500 with opacity */
    outline: none;
}

/* Modal Styling (for custom alerts) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    display: flex; /* Use flexbox for centering */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%; /* Responsive width */
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #10B981;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none; /* Hides the default slider */
    width: 100%; /* Full-width */
    height: 8px; /* Specify a height for the slider track */
    background: #d1d5db; /* Light gray track */
    outline: none; /* Remove outline */
    opacity: 0.7; /* Set transparency */
    -webkit-transition: .2s; /* 0.2 seconds transition on hover */
    transition: opacity .2s;
    border-radius: 5px;
}

/* Mouse-over effects */
input[type="range"]:hover {
    opacity: 1; /* Fully shown on mouse-over */
}

/* The slider handle (thumb) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    width: 20px; /* Set a specific slider handle width */
    height: 20px; /* Slider handle height */
    background: #10B981; /* Green background */
    border-radius: 50%; /* Make it circular */
    cursor: pointer; /* Cursor on hover */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px; /* Set a specific slider handle width */
    height: 20px; /* Slider handle height */
    background: #10B981; /* Green background */
    border-radius: 50%; /* Make it circular */
    cursor: pointer; /* Cursor on hover */
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.4);
}
