/* styles.css */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}
.mobile-desktop-link {
    display: block;
    text-align: center;
    margin-top: 2px;
    margin-bottom: 2px;
    font-size: 1em;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}
.mobile-desktop-link:hover {
    text-decoration: underline;
}
header {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: #ecf0f1;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #26D07C; /* Spring Green */
}

header p {
    font-size: 1.2em;
    margin: 5px 0 0;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-section {
    text-align: center;
    margin-bottom: 20px;
}

#filterInput {
    padding: 10px;
    width: 60%;
    max-width: 400px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#clearButton {
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

#clearButton:hover {
    background-color: #2980b9;
}

.table-section {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: white;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
    position: sticky;
    top: 0;
}

th a {
    color: inherit;
    text-decoration: none;
}

th a:hover {
    text-decoration: underline;
}

tr:hover {
    background-color: #f1f1f1;
}

.even {
    background-color: #f9f9f9;
}

.odd {
    background-color: white;
}

button, input[type="text"] {
    outline: none;
}

button:active {
    transform: scale(0.98);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 20px;
}

.footer-content p {
    margin: 5px 0;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    font-size: 1em;
    border: none;
    background-color: #3498db;
    color: white;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
}

.button:hover {
    background-color: #2980b9;
}

.suggestion-form-section {
    margin-top: 20px;
}

.suggestion-form-section h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.suggestion-form-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.suggestion-form-section label {
    margin: 10px 0 5px;
    font-weight: bold;
}

.suggestion-form-section input[type="text"],
.suggestion-form-section textarea {
    padding: 10px;
    width: 60%;
    max-width: 500px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
}

.suggestion-form-section button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

.suggestion-form-section button:hover {
    background-color: #2980b9;
}

.suggestion-form-section {
    margin-top: 20px;
}

.suggestion-form-section h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.suggestion-form-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.suggestion-form-section label {
    margin: 10px 0 5px;
    font-weight: bold;
}

.suggestion-form-section input[type="text"],
.suggestion-form-section textarea {
    padding: 10px;
    width: 60%;
    max-width: 500px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
}

.suggestion-form-section button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.suggestion-form-section button:hover {
    background-color: #2980b9;
}

.spinner {
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    width: 1.5em;
    height: 1.5em;
    border: 0.2em solid #f3f3f3;
    border-top: 0.2em solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

button[disabled] {
    background-color: #7f8c8d; /* Gray out to indicate disabled */
    cursor: not-allowed; /* Change cursor to indicate it's not clickable */
    color: #bdc3c7; /* Lighten text for better contrast */
}
