/* Admin page specific styles */
.admin-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-form, .simulation-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: bold;
}

.form-group input, .form-group textarea, .form-group select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Style for topics grid layout */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.topic-category {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.topic-category label {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.topic-category select[multiple] {
    min-height: 100px;
    width: 100%;
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.topic-category select[multiple] option {
    padding: 0.2rem 0.3rem;
    font-weight: normal;
    color: #333;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.topics-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.topic-tag {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.topic-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-button {
    padding: 0.7rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

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

.admin-button.danger {
    background-color: #e74c3c;
}

.admin-button.danger:hover {
    background-color: #c0392b;
}

.hidden {
    display: none;
}

.preview-container {
    margin-top: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.simulation-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
}

.simulation-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.simulation-info {
    padding: 1rem;
}

.simulation-title {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.simulation-platform {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.simulation-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.simulation-topic {
    background-color: #f1f1f1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #333;
}

.result-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.xml-output {
    margin-top: 2rem;
}

.xml-output pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: monospace;
}

.note {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.topic-suggestions {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.topic-suggestions p {
    margin: 0;
    color: #666;
}

.topic-suggestions a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-right: 0.3rem;
}

.topic-suggestions a:hover {
    text-decoration: underline;
}