/* Frontend Styles for Website Monitoring Checklist */

.wmc-checklist-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wmc-checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wmc-checklist-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.8em;
}

.wmc-checklist-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.wmc-week {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

/* Progress bar */
.wmc-checklist-progress {
    margin-bottom: 30px;
}

.wmc-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.wmc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.wmc-progress-text {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

/* Checklist items */
.wmc-checklist-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wmc-checklist-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.wmc-checklist-item:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.wmc-checklist-item.wmc-item-completed {
    border-color: #4CAF50;
    background: #f8fff8;
}

.wmc-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.wmc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
}

.wmc-checkbox-label input[type="checkbox"] {
    display: none;
}

.wmc-checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wmc-checkbox-label input[type="checkbox"]:checked + .wmc-checkbox-custom {
    background: #4CAF50;
    border-color: #4CAF50;
}

.wmc-checkbox-label input[type="checkbox"]:checked + .wmc-checkbox-custom::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.wmc-item-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.wmc-item-completed .wmc-item-title {
    text-decoration: line-through;
    color: #888;
}

.wmc-item-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.wmc-item-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    padding-left: 36px;
}

.wmc-item-completed .wmc-item-description {
    color: #aaa;
}

/* Sub-items */
.wmc-subitems {
    margin-top: 15px;
    padding-left: 36px;
    border-left: 3px solid #e0e0e0;
    padding-left: 20px;
}

.wmc-subitem {
    margin-bottom: 15px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.wmc-subitem:hover {
    border-color: #2196F3;
}

.wmc-subitem.wmc-item-completed {
    background: #f0f8f0;
    border-color: #4CAF50;
}

.wmc-subitem-title {
    font-weight: 500;
    color: #333;
}

.wmc-subitem.wmc-item-completed .wmc-subitem-title {
    text-decoration: line-through;
    color: #888;
}

.wmc-subitem-description {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    padding-left: 36px;
}

.wmc-subitem.wmc-item-completed .wmc-subitem-description {
    color: #aaa;
}

/* Notes */
.wmc-item-notes {
    margin-top: 15px;
    padding-left: 36px;
}

.wmc-item-notes label {
    display: block;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.wmc-notes-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9em;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.wmc-notes-textarea:focus {
    outline: none;
    border-color: #2196F3;
}

/* Status badges */
.wmc-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wmc-status-completed { background: #e8f5e8; color: #2e7d32; }
.wmc-status-in-progress { background: #fff3e0; color: #f57c00; }
.wmc-status-pending { background: #f5f5f5; color: #616161; }

.wmc-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wmc-badge-automated { background: #e3f2fd; color: #1565c0; }
.wmc-badge-manual { background: #e8f5e8; color: #2e7d32; }
.wmc-badge-required { background: #ffebee; color: #c62828; }
.wmc-badge-small { font-size: 0.7em; padding: 2px 6px; }

/* Domain list */
.wmc-domain-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wmc-domain-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.wmc-domain-list-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.8em;
}

.wmc-domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.wmc-domain-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.wmc-domain-card:hover {
    border-color: #2196F3;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
}

.wmc-domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wmc-domain-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2em;
}

.wmc-domain-url {
    margin-bottom: 15px;
}

.wmc-domain-url a {
    color: #2196F3;
    text-decoration: none;
    font-size: 0.9em;
}

.wmc-domain-url a:hover {
    text-decoration: underline;
}

.wmc-domain-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.wmc-stat {
    text-align: center;
}

.wmc-stat-label {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 4px;
}

.wmc-stat-value {
    display: block;
    font-weight: 600;
    color: #333;
}

.wmc-domain-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.wmc-btn {
    display: inline-block;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.wmc-btn-primary {
    background: #2196F3;
    color: white;
}

.wmc-btn-primary:hover {
    background: #1976D2;
    color: white;
}

.wmc-btn-secondary {
    background: #4CAF50;
    color: white;
}

.wmc-btn-secondary:hover {
    background: #45a049;
    color: white;
}

.wmc-btn-outline {
    background: transparent;
    color: #2196F3;
    border: 2px solid #2196F3;
}

.wmc-btn-outline:hover {
    background: #2196F3;
    color: white;
}

/* Completion status */
.wmc-completion-status {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wmc-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wmc-status-header h4 {
    margin: 0;
    color: #333;
}

.wmc-status-overview {
    text-align: center;
    margin-bottom: 20px;
}

.wmc-status-badge {
    margin-bottom: 15px;
}

.wmc-progress-section {
    margin-bottom: 20px;
}

.wmc-status-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.wmc-meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
}

.wmc-meta-label {
    color: #666;
}

.wmc-meta-value {
    font-weight: 500;
    color: #333;
}

.wmc-status-actions {
    text-align: center;
}

/* Modal */
.wmc-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wmc-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.wmc-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wmc-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

/* Form styles */
.wmc-form-group {
    margin-bottom: 20px;
}

.wmc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.wmc-form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease;
}

.wmc-form-group input:focus {
    outline: none;
    border-color: #2196F3;
}

.wmc-form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.wmc-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* No content states */
.wmc-no-domains,
.wmc-no-template {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Checklist Modal */
#wmc-checklist-modal {
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

#wmc-checklist-modal .wmc-modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

#wmc-checklist-modal-content {
    padding: 20px;
}

.wmc-loading {
    text-align: center;
    padding: 40px;
    font-size: 1.1em;
    color: #666;
}

.wmc-checklist-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.wmc-auto-checks-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #007cba;
}

.wmc-auto-checks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wmc-auto-checks-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.wmc-auto-check-result {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-align: center;
}

.wmc-auto-check-result.success {
    border-color: #28a745;
    background: #f8fff8;
}

.wmc-auto-check-result.warning {
    border-color: #ffc107;
    background: #fffbf0;
}

.wmc-auto-check-result.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.wmc-domain-id-display {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #495057;
    margin-top: 10px;
}

/* Checklist Modal */
#wmc-checklist-modal {
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

#wmc-checklist-modal .wmc-modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

#wmc-checklist-modal-content {
    padding: 20px;
}

.wmc-loading {
    text-align: center;
    padding: 40px;
    font-size: 1.1em;
    color: #666;
}

.wmc-checklist-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.wmc-auto-checks-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #007cba;
}

.wmc-auto-checks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.wmc-auto-checks-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.wmc-auto-check-result {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-align: center;
}

.wmc-auto-check-result.success {
    border-color: #28a745;
    background: #f8fff8;
}

.wmc-auto-check-result.warning {
    border-color: #ffc107;
    background: #fffbf0;
}

.wmc-auto-check-result.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.wmc-domain-id-display {
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #495057;
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .wmc-checklist-container {
        margin: 10px;
        padding: 15px;
    }
    
    .wmc-checklist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .wmc-checklist-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wmc-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wmc-item-badges {
        align-self: flex-start;
    }
    
    .wmc-domains-grid {
        grid-template-columns: 1fr;
    }
    
    .wmc-domain-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .wmc-domain-actions {
        flex-direction: column;
    }
    
    .wmc-domain-stats {
        grid-template-columns: 1fr;
    }
    
    .wmc-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .wmc-form-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .wmc-item-description,
    .wmc-item-notes {
        padding-left: 0;
    }
    
    .wmc-subitems {
        padding-left: 10px;
    }
    
    .wmc-subitem-description {
        padding-left: 0;
    }
}