/**
 * Frontend styles for WDM LearnDash Assignment Mark Complete
 *
 * @package WDM_LearnDash_Assignment_Mark_Complete
 * @since 1.0.0
 */


/*
.wdm-mark-complete-container {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
}
*/

.wdm-mark-complete-notice {
    margin-bottom: 15px;
}

.wdm-mark-complete-notice p {
    margin: 0;
    color: #6c757d;
    font-style: italic;
}

.wdm-mark-complete-btn {
    align-items: center;
    background-color: #235af3;
    border: 0;
    border-radius: 20px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: .75em;
    font-weight: 800;
    height: auto;
    justify-content: center;
    line-height: 1.25em;
    margin: 0;
    max-width: 385px;
    opacity: 1;
    padding: 1em;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    transition: opacity .3s ease;
    white-space: normal;
    width: 24%;
    gap: 10px;
}

.wdm-mark-complete-btn:hover {
    opacity: 0.8;
    color: #ffffff;
    text-decoration: none;
}

.wdm-mark-complete-btn .checkmark-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
    stroke-width: 2;
}

.wdm-mark-complete-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.wdm-mark-complete-btn:disabled,
.wdm-mark-complete-btn.disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Quiz started state */
.wdm-mark-complete-container.quiz-started .wdm-mark-complete-btn {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.wdm-mark-complete-loading {
    margin-top: 15px;
    color: #6c757d;
}

.wdm-mark-complete-loading .spinner {
    float: none;
    margin: 0 10px 0 0;
    vertical-align: middle;
}

.wdm-mark-complete-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
}

.wdm-mark-complete-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wdm-mark-complete-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive design */
@media (max-width: 768px) {
    .wdm-mark-complete-container {
        margin: 15px 0;
        padding: 15px;
    }
    
    .wdm-mark-complete-btn {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
    }
}

/* Integration with LearnDash themes */
.learndash .wdm-mark-complete-container {
    margin: 30px 0;
}

.learndash .wdm-mark-complete-btn {
    background: var(--ld-primary-color, #007cba);
}

.learndash .wdm-mark-complete-btn:hover {
    background: var(--ld-primary-color-hover, #005a87);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wdm-mark-complete-container {
        border: 2px solid #000000;
    }
    
    .wdm-mark-complete-btn {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wdm-mark-complete-btn {
        transition: none;
    }
}
