/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Login Page */
.login-container {
    max-width: 500px;
    margin: 100px auto;
}

.login-card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
}

/* Training Page */
.training-container {
    max-width: 900px;
    margin: 50px auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.questions {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.question {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.question:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.progress {
    height: 25px;
    border-radius: 15px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 15px;
    font-weight: bold;
    transition: width 0.5s ease;
}

.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    line-height: 25px;
    color: white;
    font-weight: bold;
}

/* Signature Page */
.signature-container {
    max-width: 600px;
    margin: 50px auto;
}

.signature-pad {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#signatureCanvas {
    display: block;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    cursor: crosshair;
}

/* Admin Panel */
.admin-container {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.admin-sidebar {
    background-color: #343a40;
    color: white;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.admin-sidebar .nav-link:hover {
    background-color: #495057;
    color: white;
    transform: translateX(5px);
}

.admin-sidebar .nav-link.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

.admin-content {
    padding: 30px;
}

.card {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
}

.card-header h5 {
    margin: 0;
    color: #343a40;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #343a40;
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr {
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px;
}

/* Form controls */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        min-height: auto;
        padding: 15px;
    }
    
    .admin-content {
        padding: 15px;
    }
    
    .training-container {
        margin: 20px;
        padding: 0 10px;
    }
    
    .login-container {
        margin: 50px 20px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .navigation-buttons button {
        width: 100%;
    }
}

/* ====== PRESENTATION MODAL STYLES ====== */
.presentation-modal .modal-dialog {
    max-width: 90%;
    margin: 20px auto;
}

.presentation-modal .modal-content {
    background: #000;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.presentation-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 15px 20px;
}

.presentation-modal .modal-title {
    color: white;
    font-weight: 600;
}

.presentation-modal .btn-close {
    filter: brightness(0) invert(1);
}

.presentation-modal .modal-body {
    padding: 0;
    background: linear-gradient(135deg, #000000 0%, #8B0000 100%);
    min-height: 70vh;
    position: relative;
}

.presentation-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px;
}

.presentation-slide.active {
    opacity: 1;
}

/* Slide Navigation */
.presentation-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 10;
}

.presentation-navigation button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.presentation-navigation button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.presentation-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.slide-indicator {
    color: white;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
}

/* Slide Styles */
.slide-content {
    max-width: 900px;
    text-align: center;
    color: white;
}

.slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 51, 51, 0.7);
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ff9999;
    margin-bottom: 2rem;
}

.slide-icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.slide-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.slide-icon-item i {
    font-size: 3rem;
    color: #ff6666;
}

.slide-icon-text {
    font-size: 1.1rem;
    color: #ffcccc;
}

.key-points {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 2rem 0;
}

.key-point {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 51, 51, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
}

.key-point-icon {
    font-size: 3rem;
    color: #ff6666;
    margin-bottom: 1rem;
}

.key-point-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff9999;
    margin-bottom: 0.5rem;
    text-align: center;
}

.key-point-desc {
    font-size: 1.1rem;
    color: #ffffff;
    text-align: center;
    line-height: 1.5;
}

.highlight {
    color: #ff6666;
    font-weight: 600;
}

.components {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
}

.component {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.component-icon {
    font-size: 2rem;
    color: #ff6666;
}

.component-text {
    font-size: 1rem;
    color: #ffcccc;
    font-weight: 500;
}

.takeaways {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.takeaway-row {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.takeaway-item {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 51, 51, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
    transition: transform 0.3s ease;
}

.takeaway-item:hover {
    transform: translateY(-5px);
}

.takeaway-icon {
    font-size: 2.5rem;
    color: #ff6666;
    margin-bottom: 1rem;
}

.takeaway-text {
    font-size: 1.1rem;
    color: #ffffff;
    text-align: center;
    line-height: 1.4;
}

.key-reminder {
    margin-top: 2rem;
    background: rgba(255, 51, 51, 0.2);
    border: 2px solid #ff3333;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
}

.reminder-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffcccc;
    letter-spacing: 1px;
}

/* Responsive adjustments for presentation */
@media (max-width: 768px) {
    .presentation-modal .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .slide-icons {
        gap: 1.5rem;
    }
    
    .key-points {
        flex-direction: column;
        gap: 1rem;
    }
    
    .takeaway-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .components {
        flex-direction: column;
        gap: 1rem;
    }
}