/* museum-rewrite/frontend/css/style.css */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin: 0;
}

main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    color: #555;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

#exhibit-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.exhibit-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.exhibit-card h3 {
    margin-top: 0;
    color: #0056b3;
}

.exhibit-card .status {
    font-weight: bold;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 0.9em;
}

.status-Running {
    background-color: #d4edda;
    color: #155724;
}

.status-Starting {
    background-color: #fff3cd;
    color: #856404;
}

.status-Offline {
    background-color: #f8d7da;
    color: #721c24;
}

.status-Error {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: bold;
}

.status-Stopping {
    background-color: #d6d8db;
    color: #383d41;
}


.exhibit-card p {
    margin: 0.5rem 0;
    font-size: 0.9em;
    color: #666;
}

.exhibit-card .actions {
    margin-top: 1rem;
}

.exhibit-card a.button,
.exhibit-card button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    text-align: center;
    transition: background-color 0.2s ease;
}

.exhibit-card a.button:hover,
.exhibit-card button:hover {
    background-color: #0056b3;
}

.exhibit-card button.stop-button {
    background-color: #dc3545;
    margin-left: 0.5rem;
}

.exhibit-card button.stop-button:hover {
    background-color: #c82333;
}


footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem 0;
    background-color: #e9ecef;
    color: #6c757d;
    font-size: 0.9em;
}

/* Loading page styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #007bff;
    margin: 1.5rem 0;
    animation: spin 1s ease infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

#loading-message {
    font-size: 1.1em;
    color: #555;
}

small {
    color: #888;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
    margin-top: 1rem;
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}