/* InstructionalVideos Component Styles */

/* Help Icon */
.instructional-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
font-size: 1.5rem;
    color: #0d6efd;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.instructional-help-icon:hover {
    color: #0a58ca;
    transform: scale(1.1);
}

.instructional-help-icon i {
    pointer-events: none;
}

/* Modal Backdrop */
.instructional-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
  }
    to {
        opacity: 1;
    }
}

/* Modal Container */
.instructional-modal-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    position: relative;
 animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
        transform: translateY(-50px);
    opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Sizes */
.modal-sm {
    width: 90%;
    max-width: 400px;
}

.modal-md {
    width: 90%;
    max-width: 600px;
}

.modal-lg {
    width: 90%;
    max-width: 900px;
}

.modal-xl {
    width: 90%;
    max-width: 1200px;
}

.modal-fullscreen {
    width: 95%;
    height: 95vh;
    max-width: none;
}

/* Modal Header */
.instructional-modal-header {
display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
    border-radius: 0.5rem 0.5rem 0 0;
}

.instructional-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.instructional-modal-close {
    background: none;
    border: none;
 font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.instructional-modal-close:hover {
  background-color: #e9ecef;
    color: #000;
}

/* Modal Body */
.instructional-modal-body {
    flex: 1;
    overflow: auto;
    padding: 1.5rem;
    position: relative;
}

/* Loading Spinner */
.instructional-loading {
    display: flex;
    align-items: center;
 justify-content: center;
    min-height: 300px;
}

/* Video Player */
.instructional-video {
    width: 100%;
    max-height: 70vh;
    border-radius: 0.25rem;
    background-color: #000;
}

/* PDF Viewer */
.instructional-pdf-viewer {
    width: 100%;
    min-height: 600px;
    height: 70vh;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: auto;
}

.instructional-pdf-viewer canvas {
    display: block;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* HTML Iframe */
.instructional-iframe {
    width: 100%;
    min-height: 600px;
  height: 70vh;
    border: none;
  border-radius: 0.25rem;
}

/* Resize Handle */
.instructional-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, #6c757d 50%);
    border-bottom-right-radius: 0.5rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.instructional-resize-handle:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .instructional-modal-container {
        width: 95%;
        max-width: none;
        max-height: 95vh;
    }

    .instructional-modal-header {
     padding: 0.75rem 1rem;
    }

    .instructional-modal-title {
   font-size: 1rem;
    }

    .instructional-modal-body {
        padding: 1rem;
    }

    .instructional-video,
    .instructional-pdf-viewer,
    .instructional-iframe {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 576px) {
    .instructional-help-icon {
        font-size: 1.25rem;
    }

    .instructional-video,
    .instructional-pdf-viewer,
    .instructional-iframe {
height: 50vh;
        min-height: 300px;
 }
}

/* Alert Styles */
.instructional-modal-body .alert {
    margin-bottom: 0;
}

.instructional-modal-body .alert i {
    margin-right: 0.5rem;
}
