/* 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); }
}

/* Specific styles for SWOT matrix and attractiveness scores */
#marketAttractivenessScores p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

#marketAttractivenessScores p:last-child {
    border-bottom: none;
}

#marketAttractivenessScores .score-value {
    font-weight: bold;
    color: #10B981; /* green-500 */
}
