/* Base Styles */
body {
    width: 99%;
    font-family: Tahoma, Geneva, sans-serif;
}

div.logo, div.text-center {
    text-align: center;
}

div.centered {
    text-align: center;
    padding: 2%;
}

div.logo > img {
    width: 30%;
}

/* Login Form */
.login-form {
    width: 300px;
    margin: 0 auto;
}

.login-form input[type="password"],
.login-form input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #dddddd;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.login-form input[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #3bb3b7;
    border: 0;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: bold;
    color: #ffffff;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container.form-container {
    max-width: 800px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    background-color: #3bb3b7;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 10px;
    display: inline-block;
}

.btn:hover {
    background-color: #2a9a9e;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-info {
    background-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-success {
    background-color: #b457b3;
}

.btn-success:hover {
    background-color: #b236b0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

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

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

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

input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
}

input[type="color"] {
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}

.conditional-fields {
    margin-top: 10px;
    padding-left: 20px;
    border-left: 3px solid #3bb3b7;
}

/* Actions */
.actions {
    display: flex;
    gap: 10px;
}

.actions.form-actions {
    margin-top: 20px;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.badge-public {
    background-color: #28a745;
    color: white;
}

.badge-private {
    background-color: #ffc107;
    color: #000;
}

.badge-inactive {
    background-color: #6c757d;
    color: white;
}

.badge-text {
    background-color: #e7c45d;
    color: white;
}

.badge-photo {
    background-color: #4de76a;
    color: white;
}

.badge-video {
    background-color: #f46cd4;
    color: white;
}

/* Utilities */
.logout-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.logout-link:hover {
    text-decoration: underline;
}

.gymkana-info {
    padding: 15px;
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.header-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: stretch;
}

.associate-users {
    padding: 15px;
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.associate-users h3 {
    margin-top: 0;
}

.associate-users-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.associate-users-input-wrapper {
    flex: 1;
}

.associate-users-input-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.associate-users-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.answer-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}
.answer-section.completed {
    border-left: 4px solid #28a745;
}
.answer-section.not-completed {
    border-left: 4px solid #6c757d;
}
.challenge-info {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
.challenge-info h3 {
    margin-top: 0;
    color: #333;
}
.answer-content {
    margin-top: 15px;
}
.answer-text {
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
}
.answer-media {
    margin-top: 10px;
}
.answer-media img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.answer-media video {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.validation-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}
.validation-badge.validated {
    background-color: #28a745;
    color: white;
}
.validation-badge.not-validated {
    background-color: #ffc107;
    color: #000;
}
.validation-badge.pending {
    background-color: #6c757d;
    color: white;
}
.correct-answer {
    margin-top: 10px;
    padding: 10px;
    background-color: #e7f3ff;
    border-left: 3px solid #007bff;
    border-radius: 4px;
}
.user-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}
