/* API Demo Styles */

.api-docs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-endpoint {
    padding: 0.75rem;
    background: white;
    border-radius: 0.25rem;
    border-left: 3px solid var(--primary);
}

.api-endpoint code {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
}

.method-get {
    background: #28a745;
    color: white;
}

.method-post {
    background: #007bff;
    color: white;
}

.method-put {
    background: #ffc107;
    color: #000;
}

.method-delete {
    background: #dc3545;
    color: white;
}

.todo-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    border-radius: 0.25rem;
    border-left: 4px solid var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.todo-item.completed {
    opacity: 0.6;
    border-left-color: #28a745;
}

.todo-item.completed .todo-title {
    text-decoration: line-through;
}

.todo-content {
    flex: 1;
}

.todo-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.todo-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.todo-actions {
    display: flex;
    gap: 0.5rem;
}

.priority-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-low {
    background: #e3f2fd;
    color: #1976d2;
}

.priority-normal {
    background: #f3e5f5;
    color: #7b1fa2;
}

.priority-high {
    background: #ffebee;
    color: #c62828;
}

#apiLog {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    margin: 0;
    line-height: 1.5;
}

.input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 1rem;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
