/* LesVal - Minimal CSS (positioning only) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

main {
    min-height: 400px;
}

form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

button,
.button {
    padding: 8px 16px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover,
.button:hover {
    background: #f0f0f0;
}

.button-primary {
    background: #000;
    color: #fff;
}

.button-primary:hover {
    background: #333;
}

.list {
    list-style: none;
}

.list-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.actions {
    display: flex;
    gap: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    font-weight: bold;
}

.question-builder {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 15px;
}

.question-options {
    margin-left: 20px;
    margin-top: 10px;
}

.option-item {
    margin-bottom: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.error {
    color: #c00;
    padding: 10px;
    border: 1px solid #c00;
    margin-bottom: 15px;
}

.success {
    color: #060;
    padding: 10px;
    border: 1px solid #060;
    margin-bottom: 15px;
}

.warning {
    color: #c60;
    padding: 10px;
    border: 1px solid #c60;
    margin-bottom: 15px;
}

.badge {
    padding: 4px 8px;
    border: 1px solid #000;
    font-size: 0.85em;
}

.badge-active {
    border-color: #060;
    color: #060;
}

.badge-closed {
    border-color: #999;
    color: #999;
}

.badge-draft {
    border-color: #c60;
    color: #c60;
}

.hidden {
    display: none;
}

/* Tag Styles */
.tag-container {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.85em;
    border-radius: 12px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #333;
}

.tag-type-class {
    background: #e3f2fd;
    border-color: #90caf9;
    color: #1976d2;
}

.tag-type-course {
    background: #f3e5f5;
    border-color: #ce93d8;
    color: #7b1fa2;
}

.tag-type-section {
    margin-bottom: 2rem;
}

.tag-type-section h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.tags-table {
    width: 100%;
    margin-bottom: 1rem;
}

.button-small {
    padding: 0.3rem 0.6rem;
    font-size: 0.875rem;
}

.button-danger {
    background-color: #dc3545;
    color: white;
    border-color: #dc3545;
}

.button-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Tab Styles */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #333;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 90%;
}

#qr-modal-wrapper .modal-content {
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    background: #fff;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-container {
    text-align: center;
    padding: 20px;
}

.nav-right {
    margin-left: auto;
}

/* Uitleg Page */
.uitleg-section {
    margin-bottom: 2.5rem;
}

.uitleg-section h3 {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.4rem;
}

.uitleg-section p {
    margin-bottom: 0.6rem;
}

.uitleg-section ul, .uitleg-section ol {
    margin: 0.5rem 0 0.75rem 1.5rem;
}

.uitleg-section li {
    margin-bottom: 0.4rem;
}

.stap {
    border: 1px solid #ddd;
    padding: 12px 16px;
    margin-bottom: 10px;
}

.stap strong {
    display: block;
    margin-bottom: 4px;
}

.tip {
    background: #fffbe6;
    border: 1px solid #f0c040;
    padding: 10px 14px;
    margin-top: 10px;
}

.let-op {
    background: #fff0f0;
    border: 1px solid #e08080;
    padding: 10px 14px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    .actions {
        flex-direction: column;
    }

    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media print {
    header,
    nav,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    main {
        margin: 0;
        padding: 0;
        max-width: none;
    }

    table {
        page-break-inside: avoid;
    }

    table th,
    table td {
        background: #fff !important;
        color: #000 !important;
    }
}
