/* JudgeLab Agility Course Reviews - Stylesheet */

/* Form Styles */
.jlab-upload-form,
.jlab-course-history,
.jlab-reviewer-list,
.jlab-review-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

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

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

.jlab-form-group input[type="text"],
.jlab-form-group input[type="date"],
.jlab-form-group input[type="file"],
.jlab-form-group select,
.jlab-form-group textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.jlab-form-group textarea {
    min-height: 150px;
    font-family: inherit;
}

.jlab-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.jlab-checkboxes label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.jlab-checkboxes input[type="checkbox"] {
    margin-right: 5px;
}

/* Buttons */
.jlab-button,
.jlab-button-small {
    display: inline-block;
    padding: 10px 20px;
    /*background-color: #0073aa;*/
    background-color:black;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.jlab-button:hover,
.jlab-button-small:hover {
    background-color:black;
    /* background-color: #005a87;*/
    color: #fff;
}

.jlab-button-small {
    padding: 6px 12px;
    font-size: 12px;
    margin: 2px;
}

.jlab-button-primary {
    /*background-color: #00a32a;*/
    background-color:black;
}

.jlab-button-primary:hover {
   /* background-color: #008a20;*/
    background-color:black;
}

/* Tables */
.jlab-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.jlab-table thead {
    background-color: #f5f5f5;
}

.jlab-table th,
.jlab-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size:14px
}

.jlab-table th {
    font-weight: bold;
}

.jlab-table tr:hover {
    background-color: #f9f9f9;
}

/* Status badges */
.jlab-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.jlab-status-unassigned {
    background-color: #f0f0f0;
    color: #666;
}

.jlab-status-accepted {
    background-color: #e3f2fd;
    color: #1976d2;
}

.jlab-status-reviewed {
    background-color: #e8f5e9;
    color: #388e3c;
}

/* Messages */
.jlab-success {
    padding: 12px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 4px;
    margin: 15px 0;
}

.jlab-error,
.jlab-errors {
    padding: 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 4px;
    margin: 15px 0;
}

.jlab-errors ul {
    margin: 0;
    padding-left: 20px;
}

.jlab-remaining {
    font-size: 16px;
    padding: 10px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    margin: 15px 0;
}

/* Course Details */
.jlab-course-details,
.jlab-course-info {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 15px 0;
}

.jlab-version {
    background: #fff;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.jlab-review {
    background: #f0f7ff;
    padding: 15px;
    margin-top: 10px;
    border-left: 3px solid #0073aa;
}

/* Modal */
.jlab-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.jlab-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 4px;
    position: relative;
}

.jlab-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.jlab-modal-close:hover,
.jlab-modal-close:focus {
    color: #000;
}

/* Review Page Specific */
.jlab-annotation-container {
    margin: 20px 0;
}

.jlab-canvas-wrapper {
    border: 2px solid #ddd;
    display: inline-block;
    margin: 15px 0;
    background: #f5f5f5;
}

.jlab-annotation-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
}

.jlab-tool-button {
    padding: 8px 16px;
    background-color: #000;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.jlab-tool-button:hover {
    background-color: #f0f0f0;
    border-color: #0073aa;
}

.jlab-tool-button.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.jlab-comments-section {
    margin: 30px 0;
}

.jlab-comments-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.jlab-review-actions {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

/* Details Row */
.jlab-details-row td {
    background: #f9f9f9 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .jlab-table {
        font-size: 12px;
    }
    
    .jlab-table th,
    .jlab-table td {
        padding: 8px;
    }
    
    .jlab-checkboxes {
        flex-direction: column;
        gap: 8px;
    }
    
    .jlab-annotation-tools {
        flex-direction: column;
    }
    
    .jlab-canvas-wrapper {
        max-width: 100%;
        overflow-x: auto;
    }
}
