/* static/style.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.header-links {
    display: flex;
    gap: 10px;
}

h1, h2, h3 {
    color: #333;
}

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

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

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.note-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.doc-info {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-item {
    padding: 10px;
    background-color: #e9f7fe;
    border-radius: 4px;
    border-left: 3px solid #3498db;
    flex: 1 1 45%;
}

.mrn-info {
    background-color: #f0f9eb;
    border-left-color: #67c23a;
}

.note-content {
    white-space: pre-wrap;
    line-height: 1.5;
    padding: 10px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.criteria-container {
    margin-bottom: 30px;
}

.criteria-group {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.criteria-group h3 {
    margin-top: 0;
    color: #2c3e50;
}

.description {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.likert-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 5px;
}

.radio-group label {
    margin-top: 5px;
    font-size: 12px;
}

.submit-btn, .logout-btn, .results-btn, .evaluate-btn, .instructions-btn, .skip-btn, .stop-save-btn, .jump-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    margin: 5px;
}

.submit-btn:hover, .logout-btn:hover, .results-btn:hover, .evaluate-btn:hover, .instructions-btn:hover, .skip-btn:hover, .stop-save-btn:hover, .jump-btn:hover {
    background-color: #2980b9;
}

.logout-btn {
    background-color: #e74c3c;
}

.logout-btn:hover {
    background-color: #c0392b;
}

.instructions-btn {
    background-color: #2ecc71;
}

.instructions-btn:hover {
    background-color: #27ae60;
}

.skip-btn {
    background-color: #f39c12;
}

.skip-btn:hover {
    background-color: #d68910;
}

.stop-save-btn {
    background-color: #e74c3c;
}

.stop-save-btn:hover {
    background-color: #c0392b;
}

.jump-btn {
    background-color: #9b59b6;
}

.jump-btn:hover {
    background-color: #8e44ad;
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* Updated styles for top navigation */
.top-navigation-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.top-navigation-buttons form {
    margin: 0;
}

.jump-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
}

.jump-form label {
    font-weight: bold;
    color: #333;
    margin: 0;
}

.jump-form input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #f39c12;
}

.alert {
    padding: 10px;
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
    border-radius: 4px;
    margin-top: 20px;
}

.results-container {
    margin-top: 20px;
}

.resource-links {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.resource-links a {
    color: #3498db;
    text-decoration: none;
    margin: 0 5px;
}

.resource-links a:hover {
    text-decoration: underline;
}

.evaluator-info {
    background-color: #f0f7ff;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 3px solid #3498db;
}

.evaluator-info p {
    margin: 0;
    font-size: 16px;
}

/* Progress bar styles */
.progress-bar-container {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.progress-bar {
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #3498db;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Table responsive styles */
.table-wrapper {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 10px;
    }
    
    .likert-scale {
        flex-wrap: wrap;
    }
    
    .header-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .doc-info {
        flex-direction: column;
    }
    
    .info-item {
        flex: 1 1 100%;
    }
    
    .form-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .top-navigation-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .top-navigation-buttons form {
        width: 100%;
    }
    
    .top-navigation-buttons button {
        width: 100%;
    }
    
    .jump-form {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    
    .jump-form input[type="number"] {
        width: 120px;
    }
}