/* Custom styles for CEFR Annotation Tool */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* CEFR Level badges */
.cefr-level {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.875em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.cefr-a1 { background-color: #28a745; color: white; }
.cefr-a2 { background-color: #5cb85c; color: white; }
.cefr-b1 { background-color: #f0ad4e; color: white; }
.cefr-b2 { background-color: #ff9800; color: white; }
.cefr-c1 { background-color: #ff5722; color: white; }
.cefr-c2 { background-color: #f44336; color: white; }

/* Status badges */
.status-draft { background-color: #6c757d; color: white; }
.status-pending { background-color: #ffc107; color: black; }
.status-pending-review { background-color: #ffc107; color: black; }
.status-approved { background-color: #28a745; color: white; }
.status-rejected { background-color: #dc3545; color: white; }

/* Text preview */
.text-preview {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

/* Question editor */
.question-item {
    border: 1px solid #dee2e6;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.distractor-input {
    margin-bottom: 10px;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

/* Form validation */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Responsive tables */
.table-responsive {
    border-radius: 5px;
    overflow: hidden;
}

/* Custom buttons */
.btn-cefr {
    background-color: #17a2b8;
    color: white;
    border: none;
}

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

/* Prevent Bootstrap alerts from fading out automatically */
.alert {
    animation: none !important;
    -webkit-animation: none !important;
}

.alert.fade {
    opacity: 1 !important;
}

.alert.show {
    opacity: 1 !important;
}