/**
 * Course Timer Styles
 */

#lesson-timer-wrapper {
    text-align: center;
    padding: 20px;
    margin: 30px auto;
    background: #f7f7f7;
    border-radius: 10px;
    max-width: 500px;
}

#lesson-timer {
    font-size: 28px;
    color: #e53935;
    margin-bottom: 20px;
}

#lesson-content {
    transition: opacity 0.3s ease;
}

#lesson-content.hidden {
    opacity: 0.4;
    pointer-events: none;
}
  
.edcare-course-timer-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.edcare-course-timer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timer-container {
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.timer-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.timer-display {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
    margin-bottom: 15px;
}

.timer-progress-container {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.timer-progress {
    height: 100%;
    background-color: #4CAF50;
    width: 100%;
    transition: width 1s linear;
}

/* Warning state */
.timer-warning .timer-progress {
    background-color: #FFC107;
}

.timer-warning-message {
    display: none;
    text-align: center;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

.timer-warning .timer-warning-message {
    display: block;
}

/* Expired state */
.timer-expired .timer-progress {
    background-color: #dc3545;
}

.edcare-course-timer-message.expired {
    text-align: center;
    padding: 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 15px;
}

.edcare-course-timer-message.expired p {
    color: #721c24;
    margin-bottom: 15px;
}

.edcare-course-timer-message.expired .button {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.edcare-course-timer-message.expired .button:hover {
    background-color: #0069d9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timer-display {
        font-size: 24px;
    }
    
    .timer-label {
        font-size: 14px;
    }
} 

.tutor-manual-enrollment-container {
    margin-top: 20px;
}

.tutor-manual-enrollment-form {
    max-width: 800px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

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

#enrollment-status {
    margin-top: 8px;
    font-size: 13px;
}

#enrollment-count.full {
    color: #d63638;
    font-weight: bold;
}

#enrollment-count.available {
    color: #2271b1;
}

#users-select {
    width: 100%;
    min-height: 150px;
}

.enrolled-users-list {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    background: #f9f9f9;
}

.enrolled-user-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.enrolled-user-item:last-child {
    border-bottom: none;
}

#loading-indicator {
    margin-left: 10px;
    color: #666;
}

#enrollment-message {
    margin-top: 15px;
    padding: 10px;
}

#enrollment-message.notice-success {
    border-left-color: #00a32a;
}

#enrollment-message.notice-error {
    border-left-color: #d63638;
}

#enrolled-users-container {
    margin-top: 30px;
    max-width: 800px;
}