/* Enhanced Training Dashboard Styles */
/* Covers: Course Admin, Scheduling, External Certifications, Practical Assessments */

/* ============================================
   TRAINING TAB NAVIGATION
   ============================================ */
.training-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.training-tabs .tab-btn {
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: #6b7280;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.training-tabs .tab-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.training-tabs .tab-btn.active {
    background: #4a6741;
    color: white;
}

.training-tabs .tab-btn .badge {
    background: #f59e0b;
    color: white;
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.training-tabs .tab-btn.active .badge {
    background: white;
    color: #4a6741;
}

/* Tab Content */
.training-tab-content {
    display: none;
}

.training-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sub-tabs (for Certifications, Practical) */
.sub-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.sub-tabs .sub-tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.sub-tabs .sub-tab-btn:hover {
    color: #4a6741;
}

.sub-tabs .sub-tab-btn.active {
    color: #4a6741;
    border-bottom-color: #4a6741;
}

.sub-tab-content {
    display: none;
}

.sub-tab-content.active {
    display: block;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f2937;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================
   COURSE ADMIN STYLES
   ============================================ */
.course-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.course-filters input,
.course-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    min-width: 150px;
}

.course-filters input:focus,
.course-filters select:focus {
    outline: none;
    border-color: #4a6741;
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4a6741;
    transition: all 0.2s;
}

.course-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.course-card.draft {
    border-left-color: #f59e0b;
}

.course-card.archived {
    border-left-color: #9ca3af;
    opacity: 0.7;
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.course-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.course-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.course-status-badge.published {
    background: rgba(74, 103, 65, 0.1);
    color: #4a6741;
}

.course-status-badge.draft {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.course-status-badge.archived {
    background: #f3f4f6;
    color: #6b7280;
}

.course-card-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.course-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.course-card-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-card-meta i {
    color: #9ca3af;
}

.course-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Syllabus Editor */
.syllabus-editor {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.syllabus-topics {
    min-height: 200px;
}

.topic-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px dashed transparent;
    transition: all 0.2s;
}

.topic-card.dragging {
    border-color: #4a6741;
    opacity: 0.5;
}

.topic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.topic-card .drag-handle {
    cursor: grab;
    color: #9ca3af;
    padding: 0.25rem;
}

.topic-card .drag-handle:hover {
    color: #4a6741;
}

.topic-title-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    background: transparent;
}

.topic-title-input:focus {
    border-color: #4a6741;
    background: white;
    outline: none;
}

.topic-objectives {
    margin-top: 0.75rem;
}

.objective-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.objective-item input {
    flex: 1;
    padding: 0.375rem 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.875rem;
}

.topic-materials {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.material-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
}

.material-icon.document { background: #dbeafe; color: #2563eb; }
.material-icon.video { background: #fce7f3; color: #db2777; }
.material-icon.link { background: #d1fae5; color: #059669; }

/* ============================================
   SCHEDULE/CALENDAR STYLES
   ============================================ */
.schedule-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.schedule-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
}

.scheduler-calendar {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav button:hover {
    background: #f3f4f6;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-weekday {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #6b7280;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    min-height: 100px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.5rem;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day.other-month {
    background: #f9fafb;
    opacity: 0.5;
}

.calendar-day.today {
    background: rgba(74, 103, 65, 0.05);
}

.calendar-day-number {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.calendar-day.today .calendar-day-number {
    background: #4a6741;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-block {
    background: #4a6741;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s;
}

.session-block:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.session-block.virtual {
    background: #3b82f6;
}

.session-block.hybrid {
    background: #8b5cf6;
}

.session-block.cancelled {
    background: #ef4444;
    text-decoration: line-through;
}

/* List View */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-list-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.session-list-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.session-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem;
    background: #f3f4f6;
    border-radius: 8px;
}

.session-date-badge .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.session-date-badge .month {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
}

.session-info {
    flex: 1;
}

.session-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #1f2937;
}

.session-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.session-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================================
   CERTIFICATIONS STYLES
   ============================================ */
.certifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cert-tabs {
    display: flex;
    gap: 0.25rem;
}

.cert-tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.cert-tab-btn:hover {
    background: #f3f4f6;
}

.cert-tab-btn.active {
    background: #4a6741;
    color: white;
}

.cert-tab-content {
    display: none;
}

.cert-tab-content.active {
    display: block;
}

.external-cert-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.certification-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.certification-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cert-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4a6741, #6b8c5f);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.certification-card.expired .cert-icon {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.certification-card.pending .cert-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.cert-details {
    flex: 1;
    min-width: 0;
}

.cert-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #1f2937;
}

.cert-issuer {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.cert-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.cert-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cert-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.cert-status-badge.verified {
    background: rgba(74, 103, 65, 0.1);
    color: #4a6741;
}

.cert-status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.cert-status-badge.expired {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.cert-status-badge.rejected {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.cert-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Verification Queue */
.verification-queue {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.verification-queue h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.verification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    align-items: center;
}

.verification-item:last-child {
    margin-bottom: 0;
}

.verification-item .user-info {
    flex: 1;
}

.verification-item .user-info h4 {
    margin: 0;
    font-size: 0.875rem;
    color: #1f2937;
}

.verification-item .cert-info {
    font-size: 0.8rem;
    color: #6b7280;
}

.verification-actions {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   PRACTICAL ASSESSMENTS STYLES
   ============================================ */
.practical-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.practical-tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.practical-tab-btn:hover {
    background: #e5e7eb;
}

.practical-tab-btn.active {
    background: #4a6741;
    color: white;
}

.practical-tab-btn .badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.practical-tab-content {
    display: none;
}

.practical-tab-content.active {
    display: block;
}

/* Pending Evaluations */
.pending-evaluations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.evaluation-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #f59e0b;
}

.evaluation-card.completed {
    border-left-color: #4a6741;
}

.evaluation-card.failed {
    border-left-color: #ef4444;
}

.evaluation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.evaluation-card h4 {
    margin: 0;
    font-size: 1rem;
    color: #1f2937;
}

.evaluation-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.evaluation-card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Assessment Definition */
.assessment-definition-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.assessment-definition-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #1f2937;
}

.rubric-preview {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.rubric-criterion {
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.rubric-criterion:last-child {
    margin-bottom: 0;
}

.rubric-criterion .criterion-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.rubric-criterion .criterion-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.rubric-criterion .criterion-score {
    font-size: 0.8rem;
    color: #4a6741;
}

.rubric-criterion .criterion-desc {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Evaluation Form */
.assessment-evaluation {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.evaluation-trainee-info {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.trainee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.25rem;
}

.trainee-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #1f2937;
}

.trainee-details p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Score Input */
.score-input-group {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.score-input-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.score-input-group .criterion-desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.score-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-input input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: #e5e7eb;
    border-radius: 4px;
    outline: none;
}

.score-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a6741;
    cursor: pointer;
}

.score-input .score-value {
    min-width: 60px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}

.score-input .score-max {
    font-size: 0.8rem;
    color: #6b7280;
}

.score-comments {
    margin-top: 0.75rem;
}

.score-comments textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 60px;
}

/* Evidence Gallery */
.evidence-section {
    margin-top: 1.5rem;
}

.evidence-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #1f2937;
}

.evidence-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.evidence-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #f3f4f6;
}

.evidence-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.evidence-item .evidence-type {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
}

.evidence-item .evidence-delete {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 24px;
    height: 24px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.evidence-item:hover .evidence-delete {
    display: flex;
}

.add-evidence-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    aspect-ratio: 1;
}

.add-evidence-btn:hover {
    border-color: #4a6741;
    background: rgba(74, 103, 65, 0.05);
}

.add-evidence-btn i {
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.add-evidence-btn span {
    font-size: 0.75rem;
    color: #6b7280;
}

/* GPS Location */
.gps-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 1rem;
}

.gps-icon {
    width: 40px;
    height: 40px;
    background: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.gps-coords {
    flex: 1;
}

.gps-coords .coords {
    font-family: monospace;
    font-size: 0.875rem;
    color: #1f2937;
}

.gps-coords .address {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Signature Pad */
.signature-section {
    margin-top: 1.5rem;
}

.signature-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #1f2937;
}

.signature-pads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.signature-pad-container {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
}

.signature-pad-container label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.signature-pad {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: crosshair;
    background: white;
    position: relative;
}

.signature-pad.has-signature {
    border-style: solid;
    border-color: #4a6741;
}

.signature-pad canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.signature-pad .placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
}

.signature-pad-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Total Score Display */
.total-score-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.total-score-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1f2937;
}

.total-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4a6741;
}

.total-score-value.passed {
    color: #4a6741;
}

.total-score-value.failed {
    color: #ef4444;
}

.passing-threshold {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ============================================
   EMPTY & LOADING STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 3rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 0 0 0.5rem 0;
    color: #374151;
}

.empty-state p {
    margin: 0;
}

.loading-state {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.loading-state i {
    font-size: 2rem;
    color: #4a6741;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .training-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 0.75rem;
    }

    .training-tabs .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .header-actions {
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .course-filters {
        flex-direction: column;
    }

    .course-filters input,
    .course-filters select {
        width: 100%;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        min-height: 60px;
    }

    .calendar-weekdays {
        display: none;
    }

    .certification-card {
        flex-direction: column;
    }

    .cert-actions {
        flex-direction: row;
        width: 100%;
    }

    .cert-actions .btn {
        flex: 1;
    }

    .signature-pads {
        grid-template-columns: 1fr;
    }

    .evidence-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .evaluation-trainee-info {
        flex-direction: column;
        text-align: center;
    }

    .practical-tabs {
        flex-wrap: wrap;
    }
}

/* ============================================
   MODALS
   ============================================ */
.training-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.training-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.training-modal.large {
    max-width: 800px;
}

.training-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.training-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
}

.training-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f3f4f6;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.training-modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.training-modal-content {
    padding: 1.5rem;
}

.training-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a6741;
    box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}
