.magiccl-dashboard-widget-content {
    margin: 0;
}

.magiccl-widget-empty {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
}

.magiccl-widget-checklist {
    border-bottom: 1px solid #f0f0f1;
}

.magiccl-widget-checklist:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.magiccl-widget-checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.magiccl-widget-checklist-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.magiccl-widget-status {
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.magiccl-status-active {
    background-color: #d1e7dd;
    color: #0f5132;
}

.magiccl-status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.magiccl-widget-actions {
    display: flex;
    gap: 4px;
}

.magiccl-widget-toggle-btn {
    font-size: 11px;
    padding: 4px 8px;
    border: 1px solid #ccd0d4;
    background: #f6f7f7;
    color: #2c3338;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.magiccl-widget-toggle-btn:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}

.magiccl-widget-toggle-btn.active {
    background: #d63638;
    color: white;
    border-color: #d63638;
}

.magiccl-widget-toggle-btn.active:hover {
    background: #b32d2e;
    border-color: #b32d2e;
}

.magiccl-widget-toggle-btn.inactive {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
}

.magiccl-widget-toggle-btn.inactive:hover {
    background: #135e96;
    border-color: #135e96;
}

.magiccl-widget-toggle-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.magiccl-widget-description {
    margin-bottom: 8px;
}

.magiccl-widget-description p {
    margin: 0;
    font-size: 13px;
    color: #646970;
    line-height: 1.4;
}

.magiccl-widget-label {
    font-size: 12px;
    font-weight: 600;
    color: #1d2327;
    margin-right: 6px;
}

.magiccl-widget-tags {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.magiccl-widget-tag {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
    font-weight: 500;
    opacity: 0.9;
}

.magiccl-widget-deadlines {
    margin-bottom: 8px;
}

.magiccl-widget-deadline-list {
    margin: 4px 0 0 0;
    padding: 0;
    list-style: none;
}

.magiccl-widget-deadline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    margin-bottom: 3px;
    border-radius: 3px;
    font-size: 12px;
}

.magiccl-widget-deadline.urgent {
    background-color: #fef2f2;
    border-left: 3px solid #dc2626;
}

.magiccl-widget-deadline.warning {
    background-color: #fffbeb;
    border-left: 3px solid #f59e0b;
}

.magiccl-widget-deadline.normal {
    background-color: #f0f9ff;
    border-left: 3px solid #3b82f6;
}

.magiccl-widget-deadline.overdue {
    background-color: #fee;
    border-left: 3px solid #b91c1c;
}

.magiccl-widget-deadline.overdue .magiccl-deadline-item {
    color: #991b1b;
    font-weight: 600;
}

.magiccl-widget-deadline.overdue .magiccl-deadline-date {
    color: #b91c1c;
    font-weight: 500;
}

.magiccl-deadline-item {
    flex: 1;
    color: #374151;
    font-weight: 500;
}

.magiccl-deadline-date {
    color: #6b7280;
    font-size: 11px;
    margin-left: 8px;
}

.magiccl-deadline-type {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
    margin-left: 8px;
    padding: 2px 4px;
    background-color: rgba(107, 114, 128, 0.1);
    border-radius: 2px;
}

.magiccl-widget-checklist-deadline {
    border-left-width: 4px !important;
    font-weight: 500;
}

.magiccl-widget-checklist-deadline .magiccl-deadline-item {
    color: #1f2937;
    font-weight: 600;
}

.magiccl-widget-checklist-deadline.urgent .magiccl-deadline-type {
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.magiccl-widget-checklist-deadline.warning .magiccl-deadline-type {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.magiccl-widget-checklist-deadline.normal .magiccl-deadline-type {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.magiccl-widget-checklist-deadline.overdue .magiccl-deadline-type {
    background-color: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
}

.magiccl-widget-items {
    margin-bottom: 8px;
}

.magiccl-widget-item-list {
    margin: 4px 0 0 0;
    padding: 0;
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #f0f0f1;
    border-radius: 4px;
    background: #fafafa;
}

/* Custom scrollbar styling */
.magiccl-widget-item-list::-webkit-scrollbar {
    width: 6px;
}

.magiccl-widget-item-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.magiccl-widget-item-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.magiccl-widget-item-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.magiccl-widget-item {
    padding: 8px 12px;
    font-size: 12px;
    color: #646970;
    border-bottom: 1px solid #f6f7f7;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    transition: background-color 0.2s ease;
}

.magiccl-widget-item:hover {
    background: #f9f9f9;
}

.magiccl-widget-item:last-child {
    border-bottom: none;
}

.magiccl-widget-item-checked .magiccl-widget-item-content {
    text-decoration: line-through;
    opacity: 0.6;
}

.magiccl-widget-checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.magiccl-widget-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.magiccl-widget-checkmark {
    height: 16px;
    width: 16px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.magiccl-widget-checkbox:checked + .magiccl-widget-checkmark {
    background-color: #0073aa;
    border-color: #0073aa;
}

.magiccl-widget-checkbox:checked + .magiccl-widget-checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.magiccl-widget-status-indicator {
    height: 16px;
    width: 16px;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
}

.magiccl-widget-status-indicator.checked {
    background-color: #46b450;
    border: 2px solid #46b450;
}

.magiccl-widget-status-indicator.checked:after {
    content: "";
    position: absolute;
    display: block;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.magiccl-widget-status-indicator.unchecked {
    background-color: #fff;
    border: 2px solid #ddd;
}

.magiccl-widget-item-content {
    flex: 1;
    word-break: break-word;
}



.magiccl-widget-footer {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f1;
    text-align: center;
}

.magiccl-widget-link {
    color: #2271b1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.magiccl-widget-link:hover {
    color: #135e96;
}

/* Loading state */
.magiccl-widget-toggle-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.magiccl-widget-toggle-btn.loading::after {
    content: "";
    width: 10px;
    height: 10px;
    margin-left: 4px;
    border: 1px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: magiccl-widget-spin 0.8s linear infinite;
}

@keyframes magiccl-widget-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .magiccl-widget-checklist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .magiccl-widget-actions {
        align-self: flex-end;
    }
    
    .magiccl-widget-deadline {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .magiccl-deadline-date {
        margin-left: 0;
    }
    
    .magiccl-deadline-type {
        margin-left: 0;
        margin-top: 2px;
    }
}

/* Dark mode support (for WordPress dark themes) */
@media (prefers-color-scheme: dark) {
    .scheme-dark .magiccl-widget-checklist-title {
        color: #f0f0f1;
    }
    
    .scheme-dark .magiccl-widget-description p {
        color: #a7aaad;
    }
    
    .scheme-dark .magiccl-widget-label {
        color: #f0f0f1;
    }
    
    .scheme-dark .magiccl-deadline-item {
        color: #f0f0f1;
    }
    
    .scheme-dark .magiccl-deadline-date {
        color: #a7aaad;
    }
    
    .scheme-dark .magiccl-widget-item {
        color: #a7aaad;
    }
    
    .scheme-dark .magiccl-widget-item-content {
        color: #a7aaad;
    }
    
    .scheme-dark .magiccl-widget-checkmark {
        background-color: #2c3338;
        border-color: #50575e;
    }
    
    .scheme-dark .magiccl-widget-status-indicator.unchecked {
        background-color: #2c3338;
        border-color: #50575e;
    }
    
    .scheme-dark .magiccl-widget-item-list {
        background: #2c3338;
        border-color: #50575e;
    }
    
    .scheme-dark .magiccl-widget-item {
        background: #1d2327;
        border-color: #3c434a;
    }
    
    .scheme-dark .magiccl-widget-item:hover {
        background: #2c3338;
    }
    
    .scheme-dark .magiccl-widget-item-list::-webkit-scrollbar-track {
        background: #3c434a;
    }
    
    .scheme-dark .magiccl-widget-item-list::-webkit-scrollbar-thumb {
        background: #50575e;
    }
    
    .scheme-dark .magiccl-widget-item-list::-webkit-scrollbar-thumb:hover {
        background: #6c7781;
    }
} 