/* ==========================================================================
   ROHP Migration V2 — Case Study Submission, Locking & Evaluation Styling
   ========================================================================== */

.rohp-case-study-wrapper {
    margin: 20px 0 50px 0;
    font-family: inherit;
    color: #1e293b;
    line-height: 1.65;
}

/* Case Study Instructions & Privacy Box */
.rohp-assignment-instructions {
    margin-bottom: 25px;
}

.rohp-assignment-instructions p {
    margin-bottom: 14px;
    font-size: 15px;
    color: #334155;
}

.rohp-privacy-warning {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 4px;
    color: #991b1b;
}

.rohp-privacy-warning p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
}

.rohp-subheadings-list {
    margin: 15px 0 20px 24px;
    list-style-type: disc;
}

.rohp-subheadings-list li {
    margin-bottom: 6px;
    font-size: 14.5px;
    color: #334155;
}

.rohp-note-text {
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #475569;
}

.rohp-divider {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 30px 0 25px 0;
}

/* Status Header (AOM Clean Typography) */
.rohp-status-header {
    margin-bottom: 24px;
    padding: 10px 0;
    border-bottom: 2px solid #e2e8f0;
}

.rohp-status-heading {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rohp-status-in-progress .rohp-status-heading {
    color: #0284c7;
}

.rohp-status-pending .rohp-status-heading {
    color: #d97706;
}

.rohp-status-completed .rohp-status-heading,
.rohp-status-approved .rohp-status-heading {
    color: #059669;
}

.rohp-status-rejected .rohp-status-heading {
    color: #dc2626;
}

.rohp-status-not-started .rohp-status-heading {
    color: #64748b;
}

/* Locked Banner (Image 5) */
.rohp-locked-banner {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 18px 20px;
    margin: 20px 0;
}

.rohp-locked-note {
    margin: 0;
    font-size: 15px;
    color: #475569;
}

/* Current Submission Upload Container */
.rohp-upload-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 24px;
    margin-top: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.rohp-box-subtitle {
    margin: 0 0 16px 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.rohp-file-input-box {
    margin-bottom: 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 16px;
}

.rohp-file-input-box input[type="file"] {
    width: 100%;
    font-size: 14px;
    color: #334155;
}

.rohp-allowed-types {
    margin-top: 10px;
    font-size: 12.5px;
    color: #64748b;
}

.rohp-message-box textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.rohp-message-box textarea:focus {
    border-color: #0284c7;
    outline: none;
    box-shadow: 0 0 0 1px #0284c7;
}

.rohp-submit-row {
    margin-top: 18px;
}

.rohp-submit-btn {
    background: #0284c7 !important;
    border: 1px solid #0284c7 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px 24px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background 0.15s ease;
}

.rohp-submit-btn:hover {
    background: #0369a1 !important;
    border-color: #0369a1 !important;
}

/* Latest Uploads Section (Image 9) */
.rohp-latest-uploads-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 24px;
    margin: 25px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.rohp-uploads-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #0f172a;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.rohp-uploads-table-wrapper {
    overflow-x: auto;
}

.rohp-uploads-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rohp-uploads-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.rohp-uploads-table td {
    padding: 14px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.rohp-file-size {
    font-size: 12px;
    color: #64748b;
    margin-left: 4px;
}

.rohp-sub-msg {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 4px;
}

.rohp-doc-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rohp-btn-action {
    display: inline-block !important;
    padding: 5px 12px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.rohp-btn-dl {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

.rohp-btn-dl:hover {
    background: #e2e8f0 !important;
}

.rohp-btn-del {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

.rohp-btn-del:hover {
    background: #fee2e2 !important;
}

/* Complete Button (Image 10) */
.rohp-completion-box {
    margin: 25px 0 10px 0;
    text-align: left;
}

.rohp-btn-complete {
    background: #f59e0b !important;
    border: 1px solid #d97706 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 10px 28px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.15s ease, transform 0.1s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.rohp-btn-complete:hover {
    background: #d97706 !important;
    border-color: #b45309 !important;
}

/* Suppress duplicate native LearnPress complete button on Case Study lessons */
#rohp-case-study-app ~ form.lp-form-complete-lesson,
#rohp-case-study-app ~ button.complete-lesson-button,
#rohp-case-study-app ~ .lp-form-complete-item,
#rohp-case-study-app ~ form[name="learn-press-form-complete-item"],
.learn-press-content-item-summary:has(#rohp-case-study-app) form.lp-form-complete-lesson,
.learn-press-content-item-summary:has(#rohp-case-study-app) button.complete-lesson-button,
.learn-press-content-item-summary:has(#rohp-case-study-app) form.lp-form-complete-item {
    display: none !important;
}

.rohp-completed-badge-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 20px;
    color: #065f46;
    font-size: 14.5px;
}

/* Confirmation Modal (Image 11) */
.rohp-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.rohp-modal-container {
    background: #ffffff;
    border-radius: 12px;
    max-width: 540px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    animation: rohpModalFadeIn 0.2s ease-out;
}

@keyframes rohpModalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.rohp-modal-content {
    padding: 36px 32px 30px 32px;
    text-align: center;
}

.rohp-modal-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.35 !important;
}

.rohp-modal-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

.rohp-modal-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.rohp-modal-btn-reverify {
    background: #0284c7 !important;
    border: 1px solid #0284c7 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px 26px !important;
    border-radius: 24px !important;
    cursor: pointer !important;
}

.rohp-modal-btn-reverify:hover {
    background: #0369a1 !important;
}

.rohp-modal-btn-complete {
    background: #0284c7 !important;
    border: 1px solid #0284c7 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 10px 26px !important;
    border-radius: 24px !important;
    cursor: pointer !important;
}

.rohp-modal-btn-complete:hover {
    background: #0369a1 !important;
}

/* Alerts */
.rohp-alert {
    padding: 14px 18px;
    border-radius: 6px;
    margin: 18px 0;
    font-size: 14.5px;
}

.rohp-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.rohp-alert-info {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.rohp-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Grade Boxes */
.rohp-grade-display {
    padding: 16px;
    border-radius: 6px;
    margin-top: 18px;
}

.rohp-grade-display h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
}

.rohp-grade-number {
    font-size: 16px;
    margin-bottom: 6px;
}

.rohp-grade-pass {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.rohp-grade-revision {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.rohp-feedback-content {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.rohp-feedback-content p {
    margin: 4px 0 0 0;
    font-style: italic;
}

/* Admin Status Badges */
.rohp-badge-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.rohp-badge-status.rohp-status-approved,
.rohp-badge-status.rohp-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.rohp-badge-status.rohp-status-pending,
.rohp-badge-status.rohp-status-in-progress {
    background: #fef3c7;
    color: #92400e;
}

.rohp-badge-status.rohp-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.rohp-badge-status.rohp-status-not-started {
    background: #f1f5f9;
    color: #64748b;
}

/* ==========================================================================
   LearnPress Quiz Question Pagination — Scoped Layout & In-Flow Visibility Fix
   ========================================================================== */
#learn-press-quiz-app .quiz-buttons.align-center .button-left.fixed {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 20px auto 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    padding-bottom: 10px !important;
    z-index: auto !important;
}

#learn-press-quiz-app .questions-pagination {
    position: static !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#learn-press-quiz-app .questions-pagination .nav-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 6px !important;
}

#learn-press-quiz-app .questions-pagination .page-numbers {
    position: static !important;
}

