/* ============================================
   Templates Common Styles
   Consolidated from all part.*.php inline <style> blocks
   ============================================ */

/* ============================================
   SHARED: Form Sections
   Used by: training.plan, team.performance, motivators
   ============================================ */
.form-section,
.event-form-section {
    background: white;
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section-header,
.event-form-section-header {
    color: var(--app-navy);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--app-yellow);
}

.form-group.row {
    margin-bottom: 1rem;
    align-items: center;
}

.form-group label {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.4;
    margin-bottom: 0;
}

.form-group label strong {
    color: var(--app-navy);
    font-weight: 700;
}

/* ============================================
   SHARED: Loading States
   Used by: motivators, guidelines, OKRs
   ============================================ */
.event-form-loading,
.guidelines-form-loading,
.okr-form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.okr-form-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SHARED: Result Cards
   Used by: training.plan, team.performance
   ============================================ */
.result-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--app-navy);
    border-radius: var(--app-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--app-shadow-sm);
}

.result-card h3 {
    color: var(--app-navy);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.result-card #efficaciteEquipe {
    color: var(--app-navy);
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* ============================================
   SHARED: Print styles
   Used by: training.plan, team.performance
   ============================================ */
@media print {
    .result-card {
        background: white !important;
        border-left: none !important;
        box-shadow: none !important;
        color: black !important;
    }

    .hide-in-pdf {
        display: none !important;
    }
}

/* ============================================
   SHARED: Toast Notifications
   Used by: guidelines, objectives, motivators, ritual-builder
   ============================================ */
.toast-notification,
.ritual-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: toastSlideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 350px;
}

.toast-notification.success,
.ritual-toast.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.toast-notification.error,
.ritual-toast.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.ritual-toast.fade-out {
    animation: toastSlideOut 0.3s ease forwards;
}

.ritual-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   SHARED: Fade In animation
   Used by: objectives, ritual-builder
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PAGE: Workshops (part.workshops.php)
   ============================================ */
.card-header {
    text-align: center;
}

.magicard .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PAGE: Activities (part.activities.php)
   ============================================ */
.btnELT {
    margin-bottom: 0 !important;
}

/* ============================================
   PAGE: Team Performance (part.team.performance.php)
   ============================================ */
iframe {
    border: 2px solid var(--app-yellow);
    border-radius: 0.5rem;
    box-shadow: var(--app-shadow-sm);
}

/* ============================================
   PAGE: Resources (part.resources.php)
   ============================================ */
.resource-section-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-section-card ul li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
    color: #495057;
    font-size: 0.9rem;
}

.resource-section-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--app-navy);
    font-weight: bold;
    font-size: 1rem;
}

.resource-section-card ul li a.btn {
    color: white;
}

.resource-section-card ul li a {
    color: var(--app-navy);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.resource-section-card ul li a:hover {
    color: var(--app-yellow-dark);
    text-decoration: underline;
}

.resource-section-card ul li strong {
    color: var(--app-navy-dark);
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.375rem;
    font-size: 1rem;
}

.resource-card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--app-shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.resource-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.resource-card .card-body {
    padding: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resource-card .card-title {
    font-size: 0.85rem;
    color: #495057;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.resource-card a {
    color: var(--app-navy);
    transition: all 0.2s ease;
}

.resource-card a:hover {
    color: var(--app-yellow-dark);
    transform: scale(1.1);
}

.collapse .card {
    border: none;
    border-left: 3px solid var(--app-yellow);
    border-radius: 0.5rem;
    box-shadow: var(--app-shadow-sm);
}

.collapse .card-body {
    padding: 0.875rem;
}

/* btn-danger — moved to dashboard-common.css */

/* ============================================
   PAGE: Team Guidelines (part.team.guidelines.php)
   ============================================ */
.guideline-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.guideline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.guideline-card-header {
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.guideline-card-header .bi {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.guideline-card-header .clickable {
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.guideline-card-header .clickable:hover {
    opacity: 1;
    transform: scale(1.1);
}

.guideline-card-body {
    padding: 1.5rem;
}

.guideline-card.dor .guideline-card-header {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: white;
}

.guideline-card.dod .guideline-card-header {
    background: var(--app-gradient-navy);
    color: white;
}

.guideline-card.team-rules .guideline-card-header {
    background: linear-gradient(135deg, var(--app-yellow) 0%, var(--app-yellow-dark) 100%);
    color: var(--app-navy);
}

.editorfeeling {
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 200px;
    transition: all 0.2s ease;
}

.editorfeeling:focus {
    border-color: var(--app-navy);
    border-style: solid;
    box-shadow: 0 0 0 3px rgba(0, 0, 128, 0.1);
    outline: none;
    color: black;
}

.visual-hint {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid var(--app-navy);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #0c4a6e;
}

.save-section {
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--app-shadow-sm);
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

/* Guidelines fullscreen mode */
#guidelines-cards-container:fullscreen {
    background: white;
    padding: 2rem;
    overflow: auto;
}

#guidelines-cards-container:-webkit-full-screen {
    background: white;
    padding: 2rem;
    overflow: auto;
}

#guidelines-cards-container:-moz-full-screen {
    background: white;
    padding: 2rem;
    overflow: auto;
}

#guidelines-cards-container:-ms-fullscreen {
    background: white;
    padding: 2rem;
    overflow: auto;
}

.fullscreen-btn {
    transition: all var(--transition-speed) ease;
}

.fullscreen-btn:hover {
    transform: translateY(-2px);
}

#guidelines-cards-container:fullscreen .editorfeeling,
#guidelines-cards-container:-webkit-full-screen .editorfeeling,
#guidelines-cards-container:-moz-full-screen .editorfeeling,
#guidelines-cards-container:-ms-fullscreen .editorfeeling {
    display: none;
}

#guidelines-cards-container:fullscreen .clickable,
#guidelines-cards-container:-webkit-full-screen .clickable,
#guidelines-cards-container:-moz-full-screen .clickable,
#guidelines-cards-container:-ms-fullscreen .clickable {
    display: none;
}

.guideline-readonly-content {
    display: none;
    white-space: pre-wrap;
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

#guidelines-cards-container:fullscreen .guideline-readonly-content,
#guidelines-cards-container:-webkit-full-screen .guideline-readonly-content,
#guidelines-cards-container:-moz-full-screen .guideline-readonly-content,
#guidelines-cards-container:-ms-fullscreen .guideline-readonly-content {
    display: block;
}

/* Guidelines save indicators */
#guidelinesSaveIndicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

/* .guidelines-form-loading — see merged SHARED: Loading States above */

/* ============================================
   PAGE: Objectives (part.objectives.php)
   FullCalendar styles — moved to dashboard-common.css
   ============================================ */

#calendar {
    background: white;
    border-radius: var(--app-radius);
    padding: 1.5rem;
    box-shadow: var(--app-shadow-sm);
    margin-bottom: 1.5rem;
}

#objectives-table-section {
    margin-top: 2rem;
}

.quarter-header {
    background: var(--app-gradient-navy);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 700;
    border-radius: 0.5rem 0.5rem 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quarter-header:hover {
    background: var(--app-gradient-navy-hover);
}

.quarter-header .badge {
    background: var(--app-yellow);
    color: var(--app-navy);
}

.objectives-filter-bar {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.objectives-filter-bar input,
.objectives-filter-bar select {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.table-objectives {
    margin-bottom: 0;
}

.table-objectives th {
    background: var(--app-navy);
    color: white;
    font-weight: 600;
    white-space: nowrap;
}

.table-objectives td {
    vertical-align: middle;
}

.btn-export-csv {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}

.btn-export-csv:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    color: white;
}

.accordion-objectives .card {
    margin-bottom: 0.5rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-view-btn {
    background: var(--app-navy);
    color: white;
}

.toggle-view-btn:hover {
    background: var(--app-navy-light);
    color: white;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-en_cours {
    background: #17a2b8;
    color: white;
}

.status-termine {
    background: #28a745;
    color: white;
}

.status-annule {
    background: #dc3545;
    color: white;
}

.suivi-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suivi-cell:hover {
    white-space: normal;
    overflow: visible;
}

.view-toggle-container {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.view-toggle .btn-outline-primary {
    border-color: var(--app-navy);
    color: var(--app-navy);
}

.view-toggle .btn-outline-primary:hover {
    background: var(--app-navy-light);
    border-color: var(--app-navy);
    color: white;
}

.view-toggle .btn-check:checked+.btn-outline-primary {
    background: var(--app-gradient-navy);
    border-color: var(--app-navy);
    color: white;
}

/* ============================================
   SHARED: Save Indicators
   Used by: objectives, OKRs
   ============================================ */
#saveIndicator,
#savedIndicator,
#okrSaveIndicator,
#okrSavedIndicator {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

#savedIndicator,
#okrSavedIndicator {
    animation: fadeIn 0.3s ease;
}

/* ============================================
   PAGE: OKRs (part.okrs.php)
   ============================================ */
.okr-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* ============================================
   SHARED: Focus Styles
   Used by: OKRs, PM, ritual-builder
   ============================================ */
#okr-area .form-control:focus,
#okr-area .form-select:focus,
#editKRForm .form-control:focus,
#linkTeamModal .form-control:focus,
#linkProductModal .form-control:focus,
#addKRModal .form-control:focus,
#visionForm .form-control:focus,
#objectiveForm .form-control:focus,
#okr_vision:focus,
.objective-input:focus,
.kr-item .form-control:focus,
.ritual-builder-container .form-control:focus {
    color: black !important;
}

.okr-action-buttons {
    display: flex;
    gap: 0.5rem;
}

.okr-vision-banner {
    background: linear-gradient(135deg, var(--app-navy) 0%, #2c3e50 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.okr-vision-banner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 193, 7, 0.2) 100%);
}

.okr-vision-banner h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: var(--app-yellow);
}

.okr-vision-banner p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 0;
    line-height: 1.5;
}

.okr-vision-banner .vision-edit-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.okr-vision-banner .vision-edit-link:hover {
    color: var(--app-yellow);
}

.float-end {
    margin-top: -10px !important;
}

.okr-no-vision {
    background: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.okr-no-vision .bi {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

/* OKR Detail Sections */
.okr-detail-section {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--app-shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.okr-detail-section h4 {
    color: var(--app-navy);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--app-yellow);
}

.link-card {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--app-navy);
}

.link-card .link-info {
    flex: 1;
}

.link-card .link-name {
    font-weight: 600;
    color: #1a1a1a;
}

.link-card .link-rationale {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* OKR Canvas Styles */
.okr-canvas {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    min-height: 600px;
}

.canvas-vision-col {
    background: linear-gradient(135deg, var(--app-navy) 0%, #2c3e50 100%);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: white;
}

.canvas-vision-col h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--app-yellow);
    margin-bottom: 1rem;
}

.canvas-objectives-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.canvas-objective-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--app-shadow-sm);
    padding: 1rem;
    border-left: 4px solid #0d6efd;
}

.canvas-objective-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--app-navy);
    margin-bottom: 0.75rem;
}

.canvas-deadline {
    font-size: 0.8rem;
    color: #6c757d;
}

.canvas-deadline .bi {
    color: #fd7e14;
}

.canvas-kr-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.canvas-kr-badge {
    background: #e7f1ff;
    border: 1px solid #0d6efd;
    border-radius: 1rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: #0d6efd;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.canvas-kr-badge .progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #198754;
}

.canvas-kr-badge .progress-dot.low {
    background: #dc3545;
}

.canvas-kr-badge .progress-dot.medium {
    background: #ffc107;
}

/* Confidence Badge Colors */
.confidence-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

.confidence-high {
    background: #d4edda;
    color: #155724;
}

.confidence-medium {
    background: #fff3cd;
    color: #856404;
}

.confidence-low {
    background: #f8d7da;
    color: #721c24;
}

/* Date picker styling */
input[type="date"] {
    position: relative;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    cursor: pointer;
    border-radius: 4px;
    margin-right: 4px;
    opacity: 1;
    padding: 5px;
    background-color: #ffffff;
    color: #ffffff;
    filter: invert(0);
}

input[type="date"]:focus {
    border-color: var(--app-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Linked items styling */
.linked-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.linked-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.linked-badge.product {
    background: #e7f1ff;
    color: #0d6efd;
}

.linked-badge.team {
    background: #d1e7dd;
    color: #0f5132;
}

/* OKR save indicators & loading — see merged SHARED sections above */

/* OKR Card Styles */
.okr-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--app-shadow-sm);
    margin-bottom: 1rem;
    border-left: 4px solid #0d6efd;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.okr-card.status-actif {
    border-left-color: #198754;
}

.okr-card.status-termine {
    border-left-color: #6c757d;
}

.okr-card.status-abandonne {
    border-left-color: #dc3545;
}

.okr-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.okr-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--app-navy);
    margin: 0;
    flex: 1;
}

.okr-card-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.okr-card-body {
    padding: 1rem 1.25rem;
}

.okr-card-footer {
    padding: 0.75rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-radius: 0 0 0.5rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kr-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kr-list-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kr-list-item:last-child {
    border-bottom: none;
}

.kr-progress-mini {
    width: 60px;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
}

.kr-progress-mini .progress-bar {
    height: 100%;
    background: #198754;
    border-radius: 3px;
    transition: width 0.3s;
}

.kr-indicator-text {
    flex: 1;
    font-size: 0.9rem;
    color: #495057;
}

.kr-values {
    font-size: 0.8rem;
    color: #6c757d;
    flex-shrink: 0;
}

.okr-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--app-shadow-sm);
}

.okr-empty-state .bi {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* ============================================
   PAGE: Product Management (part.productmanagement.php)
   ============================================ */
.business-element {
    margin-bottom: 1rem;
    white-space: pre-line;
}

#BMCExplainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: var(--app-gradient-navy);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    gap: 1rem;
}

#BMCExplainer h2 {
    color: white;
    font-weight: 700;
    margin: 0;
    font-size: 1.5rem;
    flex: 1;
}

/* PM Canvas Cards — single source of truth for #areaBMC styling */
#areaBMC .card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: var(--app-shadow-sm);
    overflow: hidden;
    background: white;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#areaBMC .card-body {
    padding: 0.6rem 0.8rem;
    flex: 1;
    overflow: hidden;
}

#areaBMC .card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--app-navy);
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 3px solid var(--app-yellow);
    position: relative;
}

#areaBMC .card-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--app-navy);
}

#areaBMC .card-text {
    color: #495057;
    line-height: 1.5;
    font-size: 0.8rem;
    white-space: pre-line;
    overflow: hidden;
}

#exportToPDF,
#exportToPDFClone {
    background: white !important;
    color: var(--app-navy) !important;
    border: 2px solid white;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

#exportToPDF:hover,
#exportToPDFClone:hover {
    background: var(--app-yellow) !important;
    color: var(--app-navy-dark);
    border-color: var(--app-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#exportToPDF {
    display: none;
}

@media (min-width: 768px) {
    #areaBMC .card {
        height: 29vh;
    }

    #areaBMC .card-body {
        max-height: calc(29vh - 2.5rem);
        overflow-y: auto;
    }

    #areaBMC .card-body::-webkit-scrollbar {
        width: 6px;
    }

    #areaBMC .card-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    #areaBMC .card-body::-webkit-scrollbar-thumb {
        background: var(--app-navy);
        border-radius: 10px;
    }

    #areaBMC .card-body::-webkit-scrollbar-thumb:hover {
        background: var(--app-yellow);
    }

    .idealBE {
        height: 27vh;
    }

    .containerP {
        margin: 1em;
    }

    .idealBE:last-child {
        margin-bottom: 1rem;
    }
}

@media print,
(prefers-color-scheme: print) {
    #areaBMC .card {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        page-break-inside: avoid;
    }

    #exportToPDF,
    #exportToPDFClone {
        display: none;
    }
}

/* PM form focus styles — see merged SHARED: Focus Styles above */

/* ============================================
   PAGE: Ritual Builder (part.ritual-builder.php)
   ============================================ */
.ritual-builder-container {
    max-width: 1400px;
    margin: 0 auto;
}

#context-retrospective .mb-3:first-of-type {
    display: none;
}

.ritual-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.ritual-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ritual-card .card-header {
    background: var(--app-gradient-navy) !important;
    color: white;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    padding: 15px 20px;
}

.alert-info {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe69c 100%);
    color: #856404;
    border: 0;
}

.objective-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    height: 100%;
}

.objective-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.objective-card.selected {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

.objective-card .card-body {
    text-align: center;
    padding: 20px;
}

.objective-card .objective-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #667eea;
}

.objective-card .objective-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.objective-card .objective-desc {
    font-size: 0.85rem;
    color: #666;
}

.context-fields {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.context-fields.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.ritual-list-item {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.ritual-list-item:hover {
    box-shadow: var(--app-shadow-sm);
}

.ritual-list-item .ritual-info {
    flex: 1;
}

.ritual-list-item .ritual-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.ritual-list-item .ritual-meta {
    font-size: 0.85rem;
    color: #666;
}

.ritual-list-item .ritual-meta span {
    margin-right: 15px;
}

.ritual-list-item .ritual-actions {
    display: flex;
    gap: 8px;
}

.btn-ritual {
    background: linear-gradient(135deg, var(--app-yellow) 0%, var(--app-yellow-dark) 100%) !important;
    color: var(--app-navy) !important;
    border: none !important;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-ritual:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: var(--app-navy) !important;
}

.team-size-input {
    max-width: 150px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.badge-objective {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.badge-lang {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 5px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.lang-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn:hover {
    border-color: #667eea;
}

.lang-btn.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.lang-btn svg {
    height: 18px;
    width: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}


.ritual-builder-container .form-control {
    color: black;
}

/* Ritual toast & focus — see merged SHARED sections above */