/* ==========================================================================
   LearnDash File Upload & Review — Public (Frontend) Styles
   Version 2.0
   ========================================================================== */

/* Wrapper */
.ldfr-upload-wrapper {
    max-width: 700px;
    margin: 30px auto;
    font-family: inherit;
    color: #2d3748;
}

/* ── Instructions Block ── */
.ldfr-instructions {
    background: #f0f7ff;
    border-left: 4px solid #1B6B7A;
    padding: 20px 24px;
    margin-bottom: 25px;
    border-radius: 4px;
}
.ldfr-instructions h3 {
    margin-top: 0;
    color: #1B6B7A;
}

/* ── Rejection Notice ── */
.ldfr-rejection-notice {
    background: #fff3f3;
    border-left: 4px solid #e53e3e;
    padding: 20px 24px;
    margin-bottom: 25px;
    border-radius: 4px;
}
.ldfr-rejection-notice h3 {
    color: #c53030;
    margin-top: 0;
}
.ldfr-feedback {
    margin-bottom: 10px;
    color: #4a2020;
}
.ldfr-new-instructions {
    background: #fffff0;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    border-left: 4px solid #d69e2e;
}
.ldfr-new-instructions h4 {
    margin-top: 0;
    color: #975a16;
}

/* ── Pending Notice ── */
.ldfr-pending-notice {
    background: #fffff0;
    border-left: 4px solid #d69e2e;
    padding: 24px;
    text-align: center;
    border-radius: 4px;
}
.ldfr-pending-notice strong {
    color: #975a16;
}

/* ── Spinner ── */
.ldfr-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #d69e2e;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ldf-spin 0.8s linear infinite;
    margin-bottom: 10px;
}
@keyframes ldf-spin {
    to { transform: rotate(360deg); }
}

/* ── Upload Form ── */
.ldfr-upload-form {
    background: #fafafa;
    padding: 30px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    transition: border-color 0.2s;
}
.ldfr-upload-form:hover {
    border-color: #a0aec0;
}

/* File Input */
.ldfr-file-input {
    margin-bottom: 20px;
}
.ldfr-file-input label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2d3748;
}
.ldfr-file-input input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
}
.ldfr-file-input input[type="file"]::file-selector-button {
    background: #1B6B7A;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 12px;
    font-size: 14px;
}
.ldfr-file-input input[type="file"]::file-selector-button:hover {
    background: #155e6b;
}
.ldfr-file-input small {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-size: 13px;
}

/* Submit Button */
.ldfr-submit-btn {
    background: #1B6B7A;
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.ldfr-submit-btn:hover {
    background: #155e6b;
}
.ldfr-submit-btn:active {
    transform: scale(0.98);
}
.ldfr-submit-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

/* ── Completed ── */
.ldfr-completed {
    background: #f0fff4;
    border-left: 4px solid #38a169;
    padding: 30px;
    text-align: center;
    border-radius: 4px;
}
.ldfr-completed .ldfr-checkmark {
    font-size: 48px;
    color: #38a169;
    display: block;
    margin-bottom: 10px;
}
.ldfr-completed h3 {
    color: #276749;
    margin-top: 0;
}

/* ── Messages ── */
.ldfr-message {
    margin-top: 15px;
}
.ldfr-error {
    color: #e53e3e;
    font-weight: 500;
}
.ldfr-success {
    color: #38a169;
    font-weight: 500;
}
.ldfr-loading {
    color: #d69e2e;
    font-weight: 500;
}

/* ── Notices ── */
.ldfr-notice {
    padding: 16px 20px;
    border-radius: 4px;
    margin: 20px 0;
}
.ldfr-notice-warning {
    background: #fffff0;
    border-left: 4px solid #d69e2e;
    color: #975a16;
}
