/* Main Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
}

/* Page Top Progress Bar Styles */
.page-progress-container {
  height: 5px;
  background: #e0e0e0;
}
.page-progress-bar {
  height: 5px;
  background: #2e7d32; /* Using theme's success color */
  transition: width 0.3s ease;
}

/* Step Progress Tracker Styles */
.step-tracker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin-bottom: 2rem;
    list-style: none;
    position: relative;
}
.step-tracker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    background-color: #f8f9fa; /* Match body background */
    padding: 0 10px;
}
.step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    border: 2px solid #e0e0e0;
}
.step-label {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Completed Step */
.step.completed .step-icon {
    background-color: #2e7d32;
    border-color: #2e7d32;
}
.step.completed .step-label {
    color: #212529;
    font-weight: 600;
}

/* Current Step */
.step.current .step-icon {
    background-color: #ffffff;
    border-color: #2e7d32;
    color: #2e7d32;
    font-weight: 700;
}
.step.current .step-label {
    color: #2e7d32;
    font-weight: 700;
}

/* Make step tracker links non-styled and interactive */
.step.completed a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.step.completed a:hover {
    transform: translateY(-3px);
    color: #2e7d32;
}

/* Card Styles */
.card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    font-weight: 600;
}

/* Button Styles */
.btn-success {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

.btn-success:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

.btn-outline-success {
    color: #2e7d32;
    border-color: #2e7d32;
}

.btn-outline-success:hover {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

/* Form Styles */
.form-check-input:checked {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

/* List Group Styles */
.list-group-item-action:hover {
    background-color: #f1f8e9;
}

/* Footer Styles */
footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Custom Styles for Steps */
.display-4 {
    font-weight: 700;
}

/* Practice Info Button */
.practice-info {
    padding: 0;
    margin-left: 5px;
    color: #2e7d32;
}

.practice-info:hover {
    color: #1b5e20;
    text-decoration: none;
}

/* Print Styles */
@media print {
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
    
    .card-header {
        background-color: #f8f9fa !important;
        color: #000 !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

/* Add icons to the list items */
.list-group-item i {
    margin-right: 8px;
}

/* Report Page Card Styles */
.report-card {
    border-left: 4px solid #2e7d32;
}

.alert-warning-soft {
    background-color: #fffde7;
    border-color: #fff59d;
    color: #5d4037;
}

/* spike: practices list layout (ported from practices.html inline styles) */
.practice-container { display: flex; align-items: flex-start; padding: 0.5rem 1rem; border: 1px solid rgba(0,0,0,.125); border-radius: .25rem; height: 100%; }
.checkbox-container { flex: 0 0 30px; display: flex; align-items: center; justify-content: center; padding-top: 0.2rem; }
.practice-text { flex: 1; }
.practice-link { color: inherit; text-decoration: none; display: block; }
#practice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.5rem; max-height: 65vh; overflow-y: auto; }
#practice-list .list-group-item { margin-bottom: 0; background: transparent; border: none; }
.scenario-checkbox { width: 1.3em !important; height: 1.3em !important; min-width: 1.3em !important; }
.nav-pills .nav-link { white-space: normal; text-align: left; }

/* spike: print rules (base.html uses .no-print but style.css never defines it) */
.only-print { display: none; }
@media print {
  .no-print, .no-print * { display: none !important; }
  .only-print { display: initial !important; }
  body { background: #fff; }
  table, th, td { border: 1px solid #dee2e6 !important; border-collapse: collapse !important; padding: 0.4rem !important; font-size: 10pt; }
  a[href]::after { content: none !important; }
}
